More error proofing & tweaking

* More general fail-safe testing.
* Moved the line where backup failure is predicted to the top of the try clause for catching an error.