Make sure REST errors are recoverable

If an error is picked up, but on the next run is ok, make sure the flag var is marked as recovered else the rest of the code still thinks there is a problem.