closed all sockets at end