protected override void OnClosing(CancelEventArgs e)
        {
            if (activeSession != null && activeSession.IsConnected)
            {
                activeSession.Close();
            }

            base.OnClosing(e);
        }