Indemnification of Agent Whether or not the transactions contemplated hereby are consummated, each Lender shall, severally and pro rata based on its respective Pro Rata Share, indemnify upon demand each Agent-Related Person (to the extent not reimbursed by or on behalf of Borrower and without limiting the obligation of Borrower to do so), and hold harmless each Agent-Related Person from and against any and all Indemnified Liabilities (which shall not include legal expenses of Agent incurred in connection with the closing of the transactions contemplated by this Agreement) incurred by it; provided, however, that no Lender shall be liable for the payment to any Agent-Related Person of any portion of such Indemnified Liabilities to the extent determined in a judgment by a court of competent jurisdiction to have resulted from such Agent-Related Person’s own gross negligence or willful misconduct; provided, however, that no action taken in accordance with the directions of the Required Lenders shall be deemed to constitute gross negligence or willful misconduct for purposes of this Section 13.7. Without limitation of the foregoing, each Lender shall, severally and pro rata based on its respective Pro Rata Share, reimburse Agent upon demand for its ratable share of any costs or out-of-pocket expenses (including Lenders’ Expenses incurred after the closing of the transactions contemplated by this Agreement) incurred by Agent (in its capacity as Agent, and not as a Lender) in connection with the preparation, execution, delivery, administration, modification, amendment or enforcement (whether through negotiations, legal proceedings or otherwise) of, or legal advice in respect of rights or responsibilities under, this Agreement, any other Loan Document, or any document contemplated by or referred to herein, to the extent that Agent is not reimbursed for such expenses by or on behalf of Borrower. The undertaking in this Section 13.7 shall survive the payment in full of the Obligations, the termination of this Agreement and the resignation of Agent.