If it's: @LOOP GOTO @LOOP breaking out is as simple as GOTO @SOMEWHERE. But if you're using a looping command (WHILE, REPEAT, FOR) you should use the BREAK command to end your loop and free up the memory that the system uses while running those kinds of loops.