public void Close(SlotSocket.CloseReason reason) { IsLogin = false; if (_socket != null) { _socket.Close(reason); _socket = null; } }