Implement basic mechanisms for `Automaton` events handling.