code: def stop(self, signum=None, frame=None):
          self.debug_print("Stopping networking.")
  
          if self.passive is not None:
              try:
                  self.passive.shutdown(1)
              except:
                  pass
              self.passive.close()
              self.passive = None
  
          if self.last_advertise is not None:
              self.rendezvous.leave_fight()
  
          
  
          for con in self:
              con.close()
  
          if signum is not None:
              raise Exception("Process was interrupted.")
docs: Just let the threads timeout by themselves.
          Otherwise mutex deadlocks could occur.
          for unl_thread in self.unl.unl_threads:
              unl_thread.exit()