Not passing settings to the closeDOMWindow() call will be a problem: Not only will that break some custom usage of DOMWindow (since the call will use an empty object for settings) but it means our own `functionCallOnClose` won't be called. At the very leasts this means the CSS overflow property won't properly be reset on the body.

I'm not sure we can easily solve this without modifying/removing DOMWindow :(