leave action on state machine