@property<EOL><INDENT>def terminated_states(self):<DEDENT>
for state_id in self._terminated_state_ids:<EOL><INDENT>state = self.load(state_id)<EOL>yield state<EOL>self.save(state, state_id=state_id, final=True)<EOL><DEDENT>
Iterates over the terminated states.

See also `running_states`.