Why don't you break out of the loop here? You know the run is bad at this point, why keep checking?