Further, even had the bombing end the war, it would have been a war crime anyway, because it was bombing of civilian targets.
A just war has to be conducted with just means or else it is no longer just.