finish state machine registry