code: def finish():
      
      out.warn("Interrupted!")
      for t in threads:
          t.stop()
      jobs.clear()
      out.warn("Waiting for download threads to finish.")
docs: Print warning about interrupt and empty the job queue.