add disconnect to socket