[codiag] Fixing connection removal while removing a bubble bug. Closes #21.