Related content
Previous snippet
In addition, a State may also have an associated
exit
Behavior, which, if defined, is executed whenever the State is exited.