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