If an attachment has been dissolved in the manner provided in the preceding section, the proceedings for the appointment of a receiver shall not thereafter be dismissed and the receiver discharged until all the assets which have come into his hands as receiver have been fully distributed or the claim upon which the attachment was made has been fully paid and discharged, unless the debtor, before such dismissal, deposits with the officer who made the attachment such amount of money as the court before which such receivership proceedings are pending, after notice to the attaching creditor and a hearing, finds reasonable for the protection of his claim in the action in which the attachment was made. Such money shall be held by the officer in place of the property held under the attachment before its dissolution and shall be disposed of as such property would have been disposed of had the attachment not been dissolved.
Mass. Gen. Laws ch. 223, § 131