void () { try { cancelFuture(myPullingDownloadFuture); cancelFuture(myPullingLoggerFuture); if (!myExecutor.isShutdown()) { myExecutor.shutdownNow(); } int count = myLoggerConnectFailedCount.get(); if (count != 0) MavenLog.LOG.warn("Maven pulling logger failed: " + count + " times"); count = myDownloadConnectFailedCount.get(); if (count != 0) MavenLog.LOG.warn("Maven pulling download listener failed: " + count + " times"); } catch (IllegalStateException ignore) { } }