The expenses of operating such railroad or other property, including repairs and all other reasonable expenses of the trustee, and any damages incurred for any injury sustained during the time of his execution of such trust, and all claims secured by any prior mortgages or encumbrances which have become payable before or during said time, and also a reasonable compensation to be allowed to the trustee by the Superior Court, shall be deducted from the earnings of the road, before any part of such earnings is paid to the creditors.
(1949 Rev., S. 5637.)