We have a C# application that hooks up to AppDomain.UnhandlerExceptions and listens to any unhandled exceptions in the application. Once there is a unhandled exception, it shows an error message to the user and kills the application via a call to Environment.FailFast.
The issue is that on some machine this causes a "Unknown Hard Error" message to be shown to the user and the application does not exit till we click "Ok".
The OS is Windows 7 x64 with .NET 4 application.
We contacted Microsoft and it turned out that it was because Windows Error Reporting Service was disabled on the Windows machine.
The call flow is like this: