code: public void ensureCompleted(Logging logger) {
      if(!isComplete()) {
        logger.warning("Progress had not completed automatically as expected: " + getProcessed() + "/" + total, new Throwable());
        setProcessed(getTotal());
        logger.progress(this);
      }
    }
docs: Ensure that the progress was completed, to make progress bars disappear
  
  @param logger Logger to report to.