Repeat computation only for CL_OUT_OF_RESOURCES exceptions.