Fix CloseWindow()