save if quitting from the menu