def terminate(self):
self._driver._terminate_stm(self.id)<EOL>
Terminate this state machine.

This removes it from the driver.
If this is the last state machine of the driver and the driver is
not configured to stay active, this will also terminate the driver.