private void addShutdownHook(final Runner runner) {
    Runtime.getRuntime()
        .addShutdownHook(
            new Thread(
                () -> {
                  try {
                    besuPluginContext.stopPlugins();
                    runner.close();
                    LogConfigurator.shutdown();
                  } catch (final Exception e) {
                    logger.error("Failed to stop Besu");
                  }
                },
                "BesuCommand-Shutdown-Hook"));
  }
Builds Vertx instance from VertxOptions. Visible for testing.

@param vertxOptions Instance of VertxOptions
@return Instance of Vertx.
app/src/main/java/org/hyperledger/besu/cli/BesuCommand.java