; and (B) by inserting before the period at the end of paragraph (1) (as redesignated) the following: , unless the alien’s departure from the United States was due to a temporary trip abroad required by emergency or extenuating circumstances outside the control of the alien . (c) Cancellation of removal and Adjustment for certain nonpermanent residents Section 240A(b)(1) ( 8 U.S.C. 1229b(b)(1) ) is amended to read as follows: (1) In general The Secretary of Homeland Security may cancel removal in the case of an alien who is inadmissible or deportable from the United States if the alien— (A) has been physically present in the United States for a continuous period of— (i) 7 years immediately preceding the date of application in the case of an alien— (I) who is deportable on any ground other than a ground specified in clause (ii)(I); and (II) whose deportation would, in the opinion of the Secretary of Homeland Security, result in extreme hardship to the alien or the alien’s spouse, child, parent, son, or daughter, who is a citizen of the United States or an alien lawfully admitted for permanent residence; or (ii) 10 years immediately preceding the date of application in the case of an alien— (I) who is deportable for conviction of an offense under section 212(a)(2), 237(a)(2), or 237(a)(3); and (II) whose deportation would, in the opinion of the Secretary of Homeland Security, result in exceptional and extremely unusual hardship to the alien or the alien’s spouse, parent, child, son, or daughter, who is a citizen of the United States or an alien lawfully admitted for permanent residence