"fixed" infinite loop during bad disconnect.