Add failure reasons to save state OSMs.

It's misleading to always save loaded/saved state, even if it fails. We should at least inform the user of what's going on.