code: public function finish($msg = null, array $extraInfo = [])
      {
          if ( ! $this->isRunning()) {
              throw new TrackerException("Cannot finish Tracker.  Not running.");
          }
  
          $tick = new Tick($this, Tick::SUCCESS, $msg, $extraInfo, 0);
          $this->status = self::FINISHED;
  
          $this->dispatcher->dispatch(Events::TRACKER_FINISH, $tick);
  
          $this->lastTick = $tick;
          return $tick->getReport();
      }
docs: Finish processing
  
  Builds a report and sends it to the finish method in the output handlers
  
  @param string $msg Optional message to include
  @param array  $extraInfo
  @return Report