disconnection handling implemented. but JUnitization is not finished.