public void CleanUp() { if (flightController != null) { flightController.CleanUp(); } if (knowledgeBase != null) { knowledgeBase.CleanUp(); } if (sModule != null) { sModule.CleanUp(); } if (decisionManager != null) { decisionManager.CleanUp(); } flightController = null; knowledgeBase = null; sModule = null; decisionManager = null; }