; or (ii) if the grant of the Good Samaritan permit was the subject of a petition for judicial review, on the date that is 18 months after the date on which the judicial review, including any appeals, has concluded, if the permitted work has not commenced by that date. (2) Extension (A) In general If the Administrator is otherwise required to terminate a Good Samaritan permit under paragraph (1)(C), the Administrator may grant an extension of the Good Samaritan permit. (B) Limitation Any extension granted under subparagraph (A) shall be not more than 180 days for each extension. (3) Effect of termination (A) In general Notwithstanding the termination of a Good Samaritan permit under paragraph (1), but subject to subparagraph (B), the provisions of paragraphs (1) through (4) of subsection (n) shall continue to apply to the Good Samaritan and any cooperating persons after the termination, including to any long-term operations and maintenance pursuant to the agreement under paragraph (5). (B) Degradation of surface water quality (i) Opportunity to return to baseline conditions If, at the time that 1 or more of the conditions described in paragraph (1) are met but before the Good Samaritan permit is terminated, actions by the Good Samaritan or cooperating person have caused surface water quality at the abandoned hardrock mine site to be measurably worse, as determined by the Administrator, when compared to baseline conditions described in the permit, the Administrator shall, before terminating the Good Samaritan permit, provide the Good Samaritan or cooperating person, as applicable, the opportunity to return surface water quality to those baseline conditions. (ii) Effect If, pursuant to clause (i), the applicable Good Samaritan or cooperating person does not return the surface water quality at the abandoned hardrock mine site to the baseline conditions described in the permit, as determined by the Administrator, subparagraph (A) shall not apply to the Good Samaritan or any cooperating persons. (4) Unforeseen