@API.timeout<EOL><INDENT>async def close(self, *args, _conn=None, **kwargs):<DEDENT>
start = time.monotonic()<EOL>ret = await self._close(*args, _conn=_conn, **kwargs)<EOL>logger.debug("<STR_LIT>", time.monotonic() - start)<EOL>return ret<EOL>
Perform any resource clean up necessary to exit the program safely.
After closing, cmd execution is still possible but you will have to
close again before exiting.

:raises: :class:`asyncio.TimeoutError` if it lasts more than self.timeout