def METHOD_NAME():
    """Close the active progress bar.
    Returns: int or None - if displayed, the total used last time.
    """
    if Tracing.progress is not None:
        # Retrieve that previous total, for repeated progress bars, it
        # can be used as a new minimum.
        result = Tracing.progress.total
        Tracing.progress.close()
        Tracing.progress = None
        return result