remove specified sockets when done