Each Credit Party agrees to indemnify, hold harmless and defend Agent, each Lender and each of their respective Related Persons (each such Person, an “ Indemnitee ”) from and against all Liabilities that may be imposed on, incurred by or asserted against any such Indemnitee in any matter relating to or arising out of, in connection with or as a result of (i) any Loan Document, any Related Agreement, any Obligation (or the repayment thereof), the use or intended use of the proceeds of any Loan or any securities filing of, or with respect to, any Credit Party, (ii) any commitment letter, proposal letter or term sheet with any Person or any Contractual Obligation, arrangement or understanding with any broker, finder or consultant, in each case entered into by or on behalf of any Credit Party or any Affiliate of any of them in connection with any of the foregoing and any Contractual Obligation entered into in connection with any E-Systems or other Electronic Transmissions, (iii) any actual or prospective investigation, litigation or other proceeding, whether or not any such Indemnitee or any of its Related Persons, any holders of securities or creditors is a party thereto, or (iv) any other act, event or transaction related, contemplated in or attendant to any of the foregoing (collectively, the “ Indemnified Matters ”); provided , that no Credit Party shall have any liability under this Section to any Indemnitee with respect to any Indemnified Matter to the extent such liability has resulted primarily from the gross negligence or willful misconduct of such Indemnitee, as determined by a court of competent jurisdiction in a final non-appealable judgment or order. Furthermore, each Credit Party waives and agrees not to assert against any Indemnitee, and shall cause each other Credit Party to waive and not assert against any Indemnitee, any right of contribution with respect to any Liabilities that may be imposed on, incurred by or asserted against any Related Person. Without limiting the foregoing, “Indemnified Matters” includes all Environmental Liabilities imposed on, incurred by or asserted against any Indemnitee, including those arising from, or otherwise involving, any Property of any Credit Party or any Related Person of any Credit Party or any actual, alleged or prospective damage to Property or natural resources or harm or injury alleged to have resulted from any Release of Hazardous Materials on, upon or into such Property or natural resource or any Property on or contiguous to any Real Estate of any Credit Party or any Related Person of any Credit Party, whether or not, with respect to any such Environmental Liabilities, any Indemnitee is a mortgagee pursuant to any leasehold mortgage, a mortgagee in possession, the successor-in-interest to any Credit Party or any Related Person of any Credit Party or the owner, lessee or operator of any Property of any Related Person through any foreclosure action, in each case except to the extent such Environmental Liabilities (i) are incurred solely following foreclosure by Agent or following Agent or any Lender having become the successor-in-interest to any Credit Party or any Related Person of any Credit Party and (ii) are attributable to acts of such Indemnitee. This Section 10.05(b) shall not apply with respect to Taxes other than any Taxes that represent Liabilities arising from any non-Tax claim.