internal void Close() { Disconnect(); if (!_client.IsDisposed) { _client.Dispose(); } _messages.Clear(); _messages = null; _curMessage = null; _settings = null; }