 <p>Set e.Handled to true and then shutdown the application.</p> <pre><code>private void Application_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { var exception = e.Exception; ShowErrorMessage(exception); if (string.CompareOrdinal(exception.Message, FP.Properties.Resources.GAConnectionErrorText) == 0 || ( !ReferenceEquals(exception.InnerException, null) &amp;&amp; string.CompareOrdinal(exception.InnerException.Message, FP.Properties.Resources.GAConnectionErrorText) == 0)) { e.Handled = true; Application.Current.Shutdown(); } } </code></pre>