code: private void addShutdownHookToCleanUpContainers()
      {
          getLog().info("Started containers will be forcibly cleaned up when the build finishes");
          Runtime.getRuntime().addShutdownHook(new Thread(new Runnable()
          {
              @Override
              public void run()
              {
                  cleanUpStartedContainers();
              }
          }));
      }
docs: Avoid dangling containers if the build is interrupted (e.g. via Ctrl+C) before the StopContainer mojo runs.