utils/pipeline: Don't attempt recoveries more than MAX_RECOVERIES times.

MAX_RECOVERIES is set to 5 for now.
Would be good to raise a dialog when that happens in the future.