code: public void stopStep(final String uuid) {
          final Optional<StepResult> found = storage.getStep(uuid);
          if (!found.isPresent()) {
              LOGGER.error("Could not stop step: step with uuid {} not found", uuid);
              return;
          }
  
          final StepResult step = found.get();
          notifier.beforeStepStop(step);
  
          step.setStage(Stage.FINISHED);
          step.setStop(System.currentTimeMillis());
  
          storage.remove(uuid);
          threadContext.stop();
  
          notifier.afterStepStop(step);
      }
docs: Stops step by given uuid.
  
  @param uuid the uuid of step to stop.