Void (Void result, Throwable ex) { if (ex != null) { Throwable cause = ex.getCause(); if (cause instanceof ProcessCanceledException) { LOG.info("Jps caches download canceled"); } else { LOG.warn("Couldn't fetch jps compilation caches", ex); onFail(); } getLoaders().forEach(loader -> loader.rollback()); myNettyClient.sendDescriptionStatusMessage(JpsBuildBundle.message("progress.text.rolling.back.downloaded.caches")); } return result; }