NetworkTest2: fixed error occurring on disconnect.