Can you get out of a contract?

If both parties are in agreement to the terms. Otherwise any written contract, signed by both parties, must be kept.