Improve autosave

Now the autosave has three problems.

1:   It's not done when return to the main menu.
2:   It's not done if a prompt is not shown and done even if a user replies "No" to the prompt.
3:   It's also done even if in the main menu.