handle socket hang up; workaround for test log deletion issue