struct fsm_t add stop flag