Use master io service in dispatcher
Fix next-state dispatch in state machine