Release of Liens In the event of (A) any private or public sale of all or any portion of the Collateral in connection with any Exercise of Secured Creditor Remedies by or with the consent of the Senior Priority Representative, (B) any sale, transfer or other disposition of all or any portion of the Collateral other than in connection with any Exercise of Secured Creditor Remedies, so long as such sale, transfer or other disposition is then permitted by the Senior Priority Documents, or (C) the release of the Senior Priority Secured Parties’ Liens on all or any portion of the Collateral which release under clause (C) shall have been approved by all of the requisite Senior Priority Secured Parties (as determined pursuant to the applicable Senior Priority Documents), in the case of clauses (B) and (C) only to the extent occurring prior to the Discharge of Senior Priority Obligations and not in connection with a Discharge of Senior Priority Obligations (and irrespective of whether an Event of Default has occurred), each Junior Priority Agent agrees, for and on behalf of itself and the Junior Priority Creditors represented thereby, that (x) so long as (1) the net cash proceeds of any such sale, if any, described in clause (A) above are applied as provided in Section 4.01 hereof and (2) there is a corresponding release of the Liens securing the Senior Priority Obligations, such sale or release will be free and clear of the Liens on such Collateral securing the Junior Priority Obligations and (y) such Junior Priority Secured Parties’ Liens with respect to the Collateral so sold, transferred, disposed or released shall terminate and be automatically released without further action. In furtherance of, and subject to, the foregoing, each Junior Priority Agent agrees that it will execute any and all Lien releases or other documents reasonably requested by any Senior Priority Agent in connection therewith, so long as the net cash proceeds, if any, from such sale described in clause (A) above of such Collateral are applied in accordance with the terms of this Agreement. Each Junior Priority Agent hereby appoints the Senior Priority Representative and any officer or duly authorized person of the Senior Priority Representative, with full power of substitution, as its true and lawful attorney-in-fact with full irrevocable power of attorney in the place and stead of such Junior Priority Agent and in the name of such Junior Priority Agent or in the Senior Priority Representative’s own name, from time to time, in the Senior Priority Representative’s sole discretion, for the purposes of carrying out the terms of this paragraph, to take any and all appropriate action and to execute and deliver any and all documents and instruments as may be necessary or desirable to accomplish the purposes of this paragraph, including any financing statements, endorsements, assignments, releases or other documents or instruments of transfer (which appointment, being coupled with an interest, is irrevocable). Until the Discharge of Senior Priority Obligations, to the extent that the Senior Priority Secured Parties (i) have released any Lien on Collateral and any such Lien is later reinstated or (ii) obtain any new Senior Priority Liens, then the Junior Priority Secured Parties shall at the time of such reinstatement or new Senior Priority Liens be granted a Junior Priority Lien on any such Collateral.
Release of Liens and Guarantees In the event that any Loan Party conveys, sells, leases, assigns, transfers or otherwise disposes of all or any portion of its assets (including the Equity Interests of any of its Subsidiaries) to a Person that is not (and is not required to become) a Loan Party in a transaction not prohibited by the Loan Documents, the Administrative Agent and the Collateral Agent shall promptly (and the Lenders hereby authorize the Administrative Agent and the Collateral Agent to) take such action and execute any such documents as may be reasonably requested by the Borrower and at the Borrower’s expense to release any Liens created by any Loan Document in respect of such Equity Interests or assets that are the subject of such disposition and to release any guarantees of the Obligations, and any Liens granted to secure the Obligations, in each case by a Person that ceases to be a Subsidiary of the Borrower as a result of a transaction described above. Any representation, warranty or covenant contained in any Loan Document relating to any such Equity Interests or assets shall no longer be deemed to be made once such Equity Interests or assets are so conveyed, sold, leased, assigned, transferred or disposed of. The Security Documents, the guarantees made therein, the Security Interest (as defined therein) and all other security interests granted thereby shall terminate, and each Loan Party shall automatically be released from its obligations thereunder and the security interests in the Collateral granted by any Loan Party shall be automatically released, when all the Obligations are paid in full in cash and Commitments are terminated (other than (A) contingent indemnification obligations, (B) obligations and liabilities under Secured Cash Management Agreements and Secured Swap Agreements and (C) obligations and liabilities under Revolving Letters of Credit as to which arrangements satisfactory to the Issuing Banks shall have been made). At such time, the Administrative Agent and the Collateral Agent agree to take such actions as are reasonably requested by the Borrower at the Borrower’s expense to evidence and effectuate such termination and release of the guarantees, Liens and security interests created by the Loan Documents.