protected override void XWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
SaveSettingsNow();
// LT-6440
// In the case of a shutdown while the parser is starting, we were getting
// into a situation where the main window was disposed of while the parser
// thread was trying to execute com calls on the UI thread and using the
// main form as the Invoke point.
m_mediator.SendMessageToAllNow("StopParser", null);
base.XWindow_Closing(sender, e);
}