def finish
      begin
        ::FileUtils.remove_entry_secure(tls[:tmpdir]) if tls[:tmpdir]
      rescue ::Exception => e
        @logger.note_warning(e.message)
      end
    ensure
      # Cleanup thread-local storage
      tls.clear
    end
def finish
      begin
        ::FileUtils.remove_entry_secure(tls[:tmpdir]) if tls[:tmpdir]
      rescue ::Exception => e
        @logger.note_warning(e.message)
      end
    ensure
      # Cleanup thread-local storage
      tls.clear
    end
All done scanning this repository.