backup: improved error handling during restore process