Guarantor shall automatically be released from its obligations hereunder (other than with respect to amounts then due and payable by Guarantor) upon the consummation of any transaction permitted by the Lease, the result of which is that the Lessee ceases to be a Subsidiary of Lessee’s Parent or otherwise ceases to be owned (directly or indirectly) by Lessee’s Parent; provided that the Lessor shall have consented to such transaction to the extent such consent is expressly required by the terms of the Lease; and provided further that Lessor shall have received a replacement guaranty in substantially the same form as this Guaranty to the extent that such guaranty is required to be delivered under the Lease; and provided further that no release of Lessee’s Parent shall be permitted to occur in a Foreclosure COC or Foreclosure Assignment.