OS X is weird when it comes to tearing down its windows.

Then again, this hasn't been tested on Windows at all.