foreclosure proceedings resulted in disposition of the mortgage but not of the debt it had previously secured