(d) Upon deposit of the balance of indebtedness with the clerk, such judgment shall issue, which judgment shall, within thirty days thereafter, be recorded in the land records of the town in which the property is situated, and the encumbrance created by the mortgage, foreclosure judgment, attachment, lis pendens or other lien shall be null and void and totally discharged.