break endless loop