correctly track hq connectivity stats, log them, report them, and reconnect based on them