private void CloseDownAWB()
{
ShuttingDown = true;
// TheSession can be null if AWB encounters network problems on startup
if (TheSession != null)
TheSession.Editor.Abort();
SaveRecentSettingsList();
UsageStats.Do(true);
ntfyTray.Visible = false;
ntfyTray.Dispose();
}