clean up autosave a little

guard more of the filesystem manipulations with
handlers and log errors instead of letting them
be raised and show up as internal errors

related to PR 13403
adjust the framework to avoid
calling the error-display-handler when reporting
problems saving files

closes PR 13403