# File lib/rubytorrent/controller.rb, line 234
  def shutdown
    @running = false
    @tracker.stopped unless @tracker.nil? rescue TrackerError
    @thread.join(0.2)
    @peers.each { |c| c.shutdown }
    self
  end