delete socket on disconnection