private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
var exception = e.ExceptionObject as Exception;
if (exception == null) return;
LogWriter.Log(exception, "Current Domain Unhandled Exception - Unknow");
var errorViewer = new ExceptionViewer(exception);
errorViewer.ShowDialog();
}