in reply to print() on closed filehandle STDOUT after printing to socket

The use strict; use warnings; strictures might have helped reveal the problem almut pointed out.