connection: Add some debugging help to try to track down the beep bug