def METHOD_NAME(self):
    """
    Disconnect the client socket from all configured connections if still
    connected.
    """
    if self._socket.closed:
        return
    for i, host in enumerate(self._hosts):
        try:
            self._socket.METHOD_NAME(
                "tcp://{host}:{port}".format(
                    host=host, port=self._ports[i]
                )
            )
        except zmq.ZMQError as exc:
            if str(exc) != "No such file or directory":
                raise exc