public void Disconnect() { lock (m_lock) if (IsConnected) { m_table.Flush(); m_table.Disconnect(); UnregisterHandlers(); IsConnected = false; ProvidersTracker.UnregisterProvider(this); } }