Properly refresh the document when the last window is closed
Visual Studio designer crap