add workaround for blocking read from pipe

perl does not close the file descriptor when the management thread calls
close(). So the read on the other end of the pipe never quits. Send a
defined string as trigger to quit as workaround.