/// <summary> /// Shutdown the FSM /// </summary> public void Stop() { if (Active) { Active = false; MainWorker.Join(); StateWatcherWorker.Join(); } }