deleting sockets cleanly