diff --git a/aeron-client/src/main/java/io/aeron/Aeron.java b/aeron-client/src/main/java/io/aeron/Aeron.java
index <HASH>..<HASH> 100644
--- a/aeron-client/src/main/java/io/aeron/Aeron.java
+++ b/aeron-client/src/main/java/io/aeron/Aeron.java
@@ -195,10 +195,11 @@ public final class Aeron implements AutoCloseable
             {
                 conductorInvoker.close();
             }
+
+            ctx.close();
         }
         finally
         {
-            ctx.close();
             clientLock.unlock();
         }
     }
[Java] Mistakenly closed the context in the finally block, moved it into the try block instead.