Fixed bug where incoming messages were displayed twice. Improved removal of dead sockets.