[control] fix crash on exit when running standalone