protected override void OnDispose() { base.OnDispose(); // Destroy all sessions. while (_sessions.Count > 0) { UnRegisterExpertSession(_sessions[0]); } _expert.Dispose(); _expert = null; }