closing the window with the X button still cleans
cancel button on save prompt now cancels close