closing unwanted sockets.