The two most common ways of getting out of a contract is either waiting for the contract to expire, or reaching an agreement between you and the brokerage to end the contract.  So, pay a great deal of attention to how much time you have to purchase a home and setup your contracts accordingly.   A contract can always be extended.