title: registering UnhandledException of AppDomain WPF
body: <p>I am registering to un-handled exception of my WPF Application.  </p>
  
  <p>After UnhandledExceptionHandler invokes, the application will close automatically ? Or do I need to call ShutdownProcess();</p>
  
  <p>Is this enough ?  </p>
  
  <pre><code>    static void Main(string[] args)
      {
          //Register to unhandled exception for this application
          AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
  
  
      static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs args)
      {
          try
          {
              Exception ex = (Exception)args.ExceptionObject;
              _logger.ErrorFormat("Process caught unhandled exception, Exception = {0}", ex);
              ShutdownProcess();
          }
          catch
          {
              // swallow silently... nothing we can do.
          }
      }
  </code></pre>