Deactivate autosave when an exception is caught to avoid crashing the Augeas handler