raise error when retry resource fails