public UnhandledExceptionListener() { Asserter.AssertIsNull(_instance, "UnhandledExceptionListener can only be created 1 time per application domain."); _instance = this; AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); }