Hide debug dialog on windows

When the application has an error it will no longer show a dialog in the
user interface.  This should better meet the needs of automated
simulations.

[#81138538] #4471