Why would you need a treaty to end a war that was never declared in the first place?
Once you do that you only have one way to quit ~ you need a treaty approved with a 2/3 majority.