Application of Proceeds of Sale The proceeds of any sale of Collateral pursuant to Section 6, as well as any Collateral consisting of cash, shall be applied by the Collateral Agent as follows: FIRST, to the payment of all costs and expenses incurred by the Collateral Agent in connection with such sale or otherwise in connection with this Agreement, any other Loan Document or any of the Obligations, including all court costs and the reasonable fees and expenses of its agents and legal counsel, the repayment of all advances made by the Collateral Agent hereunder or under any other Loan Document on behalf of any Pledgor and any other costs or expenses incurred in connection with the exercise of any right or remedy hereunder or under any other Loan Document; SECOND, to the payment in full of the Obligations (the amounts so applied to be distributed among the Secured Parties pro rata in accordance with the amounts of the Obligations owed to them on the date of any such distribution); and THIRD, to the Pledgors, their successors or assigns, or as a court of competent jurisdiction may otherwise direct. The Collateral Agent shall have absolute discretion as to the time of application of any such proceeds, moneys or balances in accordance with this Agreement. Upon any sale of the Collateral by the Collateral Agent (including pursuant to a power of sale granted by statute or under a judicial proceeding), the receipt of the purchase money by the Collateral Agent or of the officer making the sale shall be a sufficient discharge to the purchaser or purchasers of the Collateral so sold and such purchaser or purchasers shall not be obligated to see to the application of any part of the purchase money paid over to the Collateral Agent or such officer or be answerable in any way for the misapplication thereof.
Application of Proceeds Subject to the terms of any First Lien Intercreditor Agreement and any Second Lien Intercreditor Agreement, any amount received by the Administrative Agent or the Collateral Agent from any Credit Party (or from proceeds of any Collateral) following any acceleration of the Obligations under this Agreement or any Event of Default with respect to the Borrower under Section 11.4 shall be applied: (i) first, to the payment of all reasonable and documented costs and expenses incurred by the Administrative Agent or the Collateral Agent in connection with any collection or sale of the Collateral or otherwise in connection with any Credit Document, including all court costs and the reasonable fees and expenses of its agents and legal counsel, the repayment of all advances made by the Administrative Agent or the Collateral Agent hereunder or under any other Credit Document on behalf of any Credit Party and any other reasonable and documented costs or expenses incurred in connection with the exercise of any right or remedy hereunder or under any other Credit Document to the extent reimbursable hereunder or thereunder; (ii) second, to the Secured Parties, an amount (x) equal to all Obligations owing to them on the date of any distribution and (y) sufficient to Cash Collateralize all L/C Obligations on the date of any distribution, and, if such moneys shall be insufficient to pay such amounts in full and Cash Collateralize all L/C Obligations, then ratably (without priority of any one over any other) to such Secured Parties in proportion to the unpaid amounts thereof and to Cash Collateralize the L/C Obligations; and (iii) third, any surplus then remaining shall be paid to the applicable Credit Parties or their successors or assigns or to whomsoever may be lawfully entitled to receive the same or as a court of competent jurisdiction may direct; provided that any amount applied to Cash Collateralize any L/C Obligations that has not been applied to reimburse the Borrower for Unpaid Drawings under the applicable Letters of Credit at the time of expiration of all such Letters of Credit shall be applied by the Administrative Agent in the order specified in clauses (i) through (iii) above. Notwithstanding the foregoing, amounts received from any Guarantor that is not an “Eligible Contract Participant” (as defined in the Commodity Exchange Act) shall not be applied to its Obligations that are Excluded Swap Obligations.