Potential home buyer needs legal 'out'

How to avoid repercussions of breaking a lease