 a separate thread.  The thread can be
        interrupted by closing the socket on which it is listening for
        reading.d