close

fun close()

This will terminate the code execution loop. IMPORTANT: Call this anytime you wish to discontinue the execution loop.