think i fixed the window closing exit