async def close(self) -> None:
LOGGER.debug('<STR_LIT>')<EOL>if not self.handle:<EOL><INDENT>LOGGER.warning('<STR_LIT>', self.name)<EOL><DEDENT>else:<EOL><INDENT>await pool.close_pool_ledger(self.handle)<EOL>if self.auto_remove:<EOL><INDENT>await self.remove()<EOL><DEDENT><DEDENT>self._handle = None<EOL>LOGGER.debug('<STR_LIT>')<EOL>
Explicit exit. Closes pool and deletes its configuration to ensure clean next entry.
For use when keeping pool open across multiple calls.