Better error handling for auto-save