@classmethod
def _maybe_remove_pool(cls, pid):
    """If the pool has no open connections, remove it

        :param str pid: The pool id to clean

        """
    if not len(cls._pools[pid]):
        del cls._pools[pid]
