fixed disconnection thread self-join deadlocks