diff --git a/src/NzbDrone/SysTray/SysTrayApp.cs b/src/NzbDrone/SysTray/SysTrayApp.cs index 1cc7bda75..4f88819f8 100644 --- a/src/NzbDrone/SysTray/SysTrayApp.cs +++ b/src/NzbDrone/SysTray/SysTrayApp.cs @@ -1,6 +1,7 @@ using System; using System.ComponentModel; using System.Windows.Forms; +using NLog; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Processes; using NzbDrone.Host; @@ -86,7 +87,8 @@ protected override void Dispose(bool isDisposing) private void OnExit(object sender, EventArgs e) { - Application.Exit(); + LogManager.Configuration = null; + Environment.Exit(0); } private void LaunchBrowser(object sender, EventArgs e)