protected static synchronized void kill() { if (sessionList != null) { for (HTTPSession session : sessionList) { session.close(); } sessionList.clear(); // Rebuild the connection manager connmgr.shutdown(); connmgr = new PoolingHttpClientConnectionManager(sslregistry); setGlobalThreadCount(DFALTTHREADCOUNT); } }