docs: @Override
    protected void close() {
      this.stop = true;
  
      // Close the socket to force blocking operations to return.
      if (this.socket != null && !this.socket.isClosed()) {
        this.socket.close();
      }
    }