if you do a short sale, the mortgage company will often(not always) forgive the defiency.  if it does not then a bankruptcy would discharge the deficiency and any other debts you may have.