code: func Close() {
  	mu.Lock()
  	defer mu.Unlock()
  
  	if portfile != "" {
  		os.Remove(portfile)
  		portfile = ""
  	}
  	if listener != nil {
  		listener.Close()
  	}
  }
docs: // Close closes the agent, removing temporary files and closing the TCP listener.
  // If no agent is listening, Close does nothing.