Exiting a single-region composite state

When exiting from a single-region composite state, the active substate is exited recursively. This means that the exit activities are executed in sequence starting with the innermost active state in the current state configuration. If, in a submachine state, the exit occurs through an exit point pseudostate, the exit behavior of the state is executed after the behavior associated with the transition incoming to the exit point.