If such proceeds are more than all the judgments recovered against such vessel and the amounts claimed in the undecided actions, the court may order the judgments, as fast as they are recovered against said vessel, to be paid from said fund until all such actions are terminated and all judgments satisfied. The court may, on complaint, order the balance, if any, to be paid to the persons legally entitled thereto.
10 M.R.S. § 3864