code: def halt(self):
          
          self.log.warning('Halting connection to AVR')
          self._halted = True
          if self.protocol.transport:
              self.protocol.transport.close()
docs: Close the AVR device connection and wait for a resume() request.