diff --git a/pantheon/src/main/java/tech/pegasys/pantheon/Runner.java b/pantheon/src/main/java/tech/pegasys/pantheon/Runner.java index 83a4707652..662aee5868 100644 --- a/pantheon/src/main/java/tech/pegasys/pantheon/Runner.java +++ b/pantheon/src/main/java/tech/pegasys/pantheon/Runner.java @@ -83,6 +83,7 @@ public class Runner implements AutoCloseable { @Override public void close() throws Exception { networkRunner.stop(); + networkRunner.awaitStop(); exec.shutdown(); try { jsonRpc.ifPresent(service -> service.stop().join());