Add debug logs, add breaking disconnect test

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>
Fix disconnect bug discovered by dff4944

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>
Test connect event correctness

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>
Fix connect event issue discovered by f4781d7

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>