The judgment must also provide for the payment of any surplus to the owner of the property, or other person shown to be legally entitled thereto, and for the safekeeping of such surplus, until it is claimed by and paid to the person entitled thereto.
SDCL 21-53-3