only save on close if autosaving