/** Cleanup and terminate ThreadPool. */ @Override public void terminate() { if (pool == null) { return; } // pool.terminate(); pool.cancel(); }