Use break to exit the loop, not continue.