Added high level events to FSM context
Added support for failure types