Section 53. The receivers shall pay all debts due from the corporation if the funds in their hands are sufficient therefor; and if they are not, they shall distribute them ratably among the creditors who prove their debts in the manner directed by any decree of the court for that purpose. If there is a balance remaining after the payment of the debts, the receivers shall distribute and pay it to those who are justly entitled thereto as having been stockholders or members of the corporation, or their legal representatives.