Pay your earnest money deposit to the title company, not the seller. So if you cannot buy it, then have your fund refunded.