Exit repeat loop