If a nuclear war starts, would that not indicate god has already failed mankind?* So why pray?
.
* ignoring, of course, the already abundant evidence that failure has occured on a massive scale (if god actually existed). If he/it hasn't cared up til now, a nuclear war will make little difference in god's willingness to answer any prayers.