code: @Override
      public void stop() {
          try {
              logger.info("\n###stopping...");
              connection.close();
              this.isRunning = false;
              logger.info("\n#" + getSimulatorName() + "\nstopped.");
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
  
      }
docs: Stops the simulator.