protected void shutDown() throws Exception { AgentManager am = AgentManager.getInstance(); am.stopAllThreads(); if (httpServer != null) { stopHttpServer(httpServer); } super.shutDown(); }