Added support for ending cyclic CAAT.Behavior at the end of a cycle.