cListenThread correctly closes all sockets.

This partially fixes FS 421.