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
Update main.cc

Remove stray line causing extra diff
Resolving merge conflicts, hopefully this went OK
Merge pull request #4556 from NREL/81138538-HideDebugDialog

Hide debug dialog on windows