IE Window closing bug.

This has been fixed. Finally.