Saves window position on close