private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
ILoggerService logService = LifetimeService.Instance.Container.Resolve<ILoggerService>();
logService.WriteToLogLevel("Dispatcher Unhandled Exception Occured :", LogLevelEnum.Fatal, e.Exception);
MessageBox.Show("Dispatcher:" + e.Exception.ToString(), "Fatal Error", MessageBoxButton.OK, MessageBoxImage.Error);
e.Handled = true;/// if you false this and comment following line, then, exception goes to App's main window
GracefulExit();
Environment.Exit(0); //We can remove this and can try to recover APP and keep it running.
}