Fixed bug in lost connection callback passing.