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>LOGGER.debug('<STR_LIT>', self.name)<EOL>await wallet.close_wallet(self.handle)<EOL>if self.auto_remove:<EOL><INDENT>LOGGER.info('<STR_LIT>', self.name)<EOL>await self.remove()<EOL><DEDENT><DEDENT>self._handle = None<EOL>LOGGER.debug('<STR_LIT>')<EOL>
Explicit exit. Close and delete wallet.
For use when keeping wallet open across multiple calls.