Closing listening sockets.