When the plaintiff in the subsequent action prevails, judgment shall be rendered against the plaintiff in the prior action and in favor of the plaintiff in the subsequent action, and execution issued thereon for his costs. Costs may or may not be awarded to the original defendant.
14 M.R.S. § 204