public App() { LoggingConfig.SetupLog4net(); AppDomain.CurrentDomain.UnhandledException += (s, e) => OnUnhandledException(e); WireTaskExceptionHandler(); InitializeComponent(); }