If leave is granted, the plaintiff in the subsequent action shall give bond or enter into recognizance with sufficient surety in such sum as the court orders, to pay the plaintiff in the prior action all damages and costs occasioned by such defense. An entry of record shall be made that he is admitted to defend such action.
14 M.R.S. § 202