Keep in mind, too, that if you break a lease, the landlord may well report you to a credit reporting agency, and that'll be a black mark on your credit. That black mark, in turn, could show up when you apply for a mortgage.
First, read your lease carefully, noting any stated situations that will allow early termination. Then talk one on one with your property owner to see if you can work out something amicable regarding your early departure. Frequently a property owner might consider letting you place a for rent ad for the property and allow your departure without penalty if a new renter is found.