It will only leave once the loop condition is not met. (I guessed the relaxed state was the driving factor). Any external change to the state, for instance to “Alerted” would make the loop fail and re-walk the tree. Perhaps you want a different variable to trigger the exit from the state?