Fixed unrecoverable connection when client thread has crashed