/// <summary> /// Disposing the object /// </summary> /// <param name="bDisposing"> true for dispose, false for finallizing</param> protected virtual void Dispose(bool bDisposing) { if (m_connection != null) { try { RestoreOldSetting(); m_connection.SendLine("quit"); } catch (Exception) { } m_connection.Dispose(); m_connection = null; } if (m_state != null) { m_state.Dispose(); m_state = null; } }