protected virtual void NotifyStartupInternal(string[] args)
 {
     try
     {
         Application.Current.DispatcherUnhandledException += this.Current_DispatcherUnhandledException;
         StartupPipeline.Run(args);
         Application.Current.Exit += this.ApplicationExit;
     }
     catch (Exception ex)
     {
         Log.Error("Error at startup", ex, this);
         Application.Current.Shutdown(1);
     }
 }