code: func (hm *hostportManager) closeHostports(hostportMappings []*PortMapping) error {
  	errList := []error{}
  	for _, pm := range hostportMappings {
  		hp := portMappingToHostport(pm)
  		if socket, ok := hm.hostPortMap[hp]; ok {
  			klog.V(2).Infof("Closing host port %s", hp.String())
  			if err := socket.Close(); err != nil {
  				errList = append(errList, fmt.Errorf("failed to close host port %s: %v", hp.String(), err))
  				continue
  			}
  			delete(hm.hostPortMap, hp)
  		}
  	}
  	return utilerrors.NewAggregate(errList)
  }
docs: // closeHostports tries to close all the listed host ports