serialize event ids, not the full event in Error States,  add the concept of an ErrorState and a default impl to FSM