Improve stability of auto-save.

* Fix bug in setting of '_saveTimeout' field.
* Implement configurable retry attempts.