Added debugging measures for breaking connections