+ // remove subsystems first, which need access to other subsystems in their
+ // destructors (e.g. "nasal")
+ SGSubsystem *sub = globals->get_subsystem("ai_model");
+ globals->get_subsystem_mgr()->get_group(SGSubsystemMgr::GENERAL)->remove_subsystem("ai_model");
+ delete sub;