autosave & quit on enter background