async def ensure_is_closed(self) -> None:
    if self.is_closed:
        return None
    (await self._close_common())
async def ensure_is_closed(self) -> None:
    if self.is_closed:
        return None
    (await self._close_common())