You can always just return from inside the loop. If that doesn't work the ```break``` command should get you out of the loop.