docs: public void stop() {
      this.stop = true;
  
      try {
        this.connection.close();
        logger.info("BitTorrent tracker closed.");
      } catch (IOException ioe) {
        logger.error("Could not stop the tracker: {}!", ioe.getMessage());
      }
  
      if (myPeerCollectorThread != null && myPeerCollectorThread.isAlive()) {
        myPeerCollectorThread.interrupt();
        try {
          myPeerCollectorThread.join();
        } catch (InterruptedException e) {
          //
        }
        logger.info("Peer collection terminated.");
      }
    }