Fix killing of threads that haven't started