async def __aexit__(self, *args):
        """Close the Connection when exiting an async context manager."""
        _logger.debug("Exiting connection %r context.", self.container_id)
        await self.destroy_async()
        _logger.debug("Finished exiting connection %r context.", self.container_id)
async def __aexit__ ( self , * args ) : _logger . debug ( "Exiting connection %r context." , self . container_id ) await self . destroy_async ( ) _logger . debug ( "Finished exiting connection %r context." , self . container_id )
Close the Connection when exiting an async context manager.