Sleep if the razor api errors.