Added a Thread.Sleep of 3 seconds on Domain.UnhandledError. The application will crash after that so at least the asynchronous logging of the error will be completed before that.