Coverity: don't kill a thread that was not created