You see, they have not ratified or withdrawn from the Rome treaty, which is the only UN treaty that talks about war crimes.
What I'm saying, if countries just get to opt out of treaties, where that affects a great deal of other countries (like here, in Iran's case), and that just lets them off the hook, then you can just close up the UN and start WW3 right now. Because that just became unavoidable.
(historically people use "war crimes" for Geneva convention violations too, but those can only be presented to the UNSC, and with China and Iran blocking everything, nothing will ever be accepted there. So if those are warcrimes, that's a purely theoretical thing only)