def publish_pool_closed(self, address):
        """Publish a :class:`PoolClosedEvent` to all pool listeners.
        """
        event = PoolClosedEvent(address)
        for subscriber in self.__cmap_listeners:
            try:
                subscriber.pool_closed(event)
            except Exception:
                _handle_exception()
Publish a :class:`PoolClosedEvent` to all pool listeners.
        
stackoverflow/venv/lib/python3.6/site-packages/pymongo/monitoring.py