Yep. Lots of references say this is bad. But! I'm the developer and in this case, it's imperative that the app/window close on a fatal error. I should note that there are only a couple of things that are fatal and the users have already expressed annoyance at having to click 2 buttons to close the app, instead of just one. So, this is per request, in addition to just making good sense.
Please share the IE hack if you have it, I really need to implement this for just this one app.