diff --git a/presto-main/src/main/java/com/facebook/presto/transaction/InMemoryTransactionManager.java b/presto-main/src/main/java/com/facebook/presto/transaction/InMemoryTransactionManager.java
index <HASH>..<HASH> 100644
--- a/presto-main/src/main/java/com/facebook/presto/transaction/InMemoryTransactionManager.java
+++ b/presto-main/src/main/java/com/facebook/presto/transaction/InMemoryTransactionManager.java
@@ -584,12 +584,13 @@ public class InMemoryTransactionManager
         private synchronized ListenableFuture<?> abortInternal()
         {
             // the callbacks in statement performed on another thread so are safe
-            return nonCancellationPropagating(Futures.allAsList(Stream.concat(
+            List<ListenableFuture<?>> abortFutures = Stream.concat(
                     functionNamespaceTransactions.values().stream()
                             .map(transactionMetadata -> finishingExecutor.submit(() -> safeAbort(transactionMetadata))),
                     connectorIdToMetadata.values().stream()
                             .map(connection -> finishingExecutor.submit(() -> safeAbort(connection))))
-                    .collect(toList())));
+                    .collect(toList());
+            return nonCancellationPropagating(Futures.allAsList(abortFutures));
         }
 
         private static void safeAbort(ConnectorTransactionMetadata connection)
Fix incompatible types error on jdk 9 and <I>