How did Hammurabi's law protect the citizens of the Babylonian Empire? The law punishes all people who bring an accusation. The
law provides for a jury from the same social class. The law punishes people for crimes they are accused of committing. The law discourages people from wrongly accusing someone of a crime.
I would say that the US and the Soviet Union at the end of WWII withdrew their troops as soon as a demilitarized zone was created. Also, I am sure they would require a peace treaty to be signed with Germany before withdrawing troops.