Only call ruby-progressbar#finish if the progressbar is not already
finished.