(a) The compensation to the trustees and others, and expenses incurred in settling the affairs of the corporation, including the payment of the costs in the quo warranto proceedings in the circuit court, and the costs in the chancery court.
(b) Debts due to the state or any county, city, town, or village for taxes or otherwise.
(c) A ratable distribution amongst creditors who have proved their claims, and had them allowed.
(d) The surplus, if any, shall be ratably distributed among the stockholders, according to their respective rights.