I don't know of any contracts that are not upheld. To my knowledge, there are terms for termination of the contract early by either party. As long as those terms are met, then I don't see the issue. Both parties agree to the contract as a whole, not as a part.
I understand your thought process, but just see it from a different view.