/// <summary>
        /// Handle the logout event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonLogout_Click(object sender, EventArgs e)
        {
            using (new HourGlass())
            {
                // Log out of the Siebel application

                Cursor.Current            = Cursors.WaitCursor;
                toolStripStatusLabel.Text = "Logging out...";
                Application.DoEvents();

                try
                {
                    // Log out of the session
                    siebelApp.Disconnect();
                    // Toggle controls to prevent use
                    toggleControls();
                }
                catch (ReposAnalyserException e1)
                {
                    showError("Siebel Logoff Error", "A problem has occurred closing the Siebel connection",
                              e1.ToString());
                }
                catch (Exception e2)
                {
                    showError("Unexcpeted Error", "An unexpected error has occurred",
                              e2.ToString());
                }
                finally
                {
                    toolStripStatusLabel.Text = "Ready";
                    Application.DoEvents();
                }
            }
        }