Coverity CID 992486: Fixed killing random thread