private static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e) { Exception ex = (Exception)e.ExceptionObject; SLogger.LogFatalFormat(ex, "Unhandled exception while running ClientConsole. Details:{0}; IsTerminating:{1}", ex.Message, e.IsTerminating); }