code: def halt(self):
          
  
          buf = []
          buf.append(self.act_end)
          buf.append(0)
  
          crc = self.calculate_crc(buf)
          self.clear_bitmask(0x08, 0x80)
          self.card_write(self.mode_transrec, buf)
          self.clear_bitmask(0x08, 0x08)
          self.authed = False
docs: Switch state to HALT