Raise an exception if there are too many retries

Add a safeguard against infinite reloading when an object is in
"processing" state.