The Court of Chancery, before making distribution of the assets of a corporation among the creditors or stockholders thereof, shall allow a reasonable compensation to the receiver or trustee for such receiver's or trustee's services, and the costs and expenses incurred in and about the execution of such receiver's or trustee's trust, and the costs of the proceedings in the Court, to be first paid out of the assets.