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

Currently, if a provider fails in an `augopen` block, the exception is caught in `augopen_internal`, then `augsave!` fails, overriding the original exception. Deactivating `autosave` when an exception is caught avoids this situation.