If the judgment in a civil action is for the defendant, the attachment shall be dissolved upon the exhaustion of all possible appellate review of such judgment if it is upheld.
The provisions of this section shall apply to property attached upon a counterclaim when judgment is rendered for the plaintiff upon such counterclaim.
Mass. Gen. Laws ch. 223, § 115