OnUnhandledException method is added to the AppDomain.UnhandledException event