assured that thread is stopped on disconnect