Wouldn't this kill the entire process instead of just skipping to the next iteration of the loop?