Open the window before closing it out