Command exited with code 0. Command output: if self.writer is not None: self.writer.close() await asyncio.wait_for(self.writer.wait_closed(), TCP.TIMEOUT) except Exception as e: log.info("Close exception: %s %s", type(e).__name__, e) async def send(self, data: bytes): async with self.lock: try: if self.writer is not None: self.writer.write(data) await self.writer.drain() except Exception as e: log.info("Send exception: %s %s", type(e).__name__, e) raise OSError(e) async def recv(self, length: int = 0): data = b"" while len(data) < length: try: chunk = await asyncio.wait_for( self.reader.read(length - len(data)), TCP.TIMEOUT ) except (OSError, asyncio.TimeoutError): return None else: if chunk: data += chunk else: