; and (ii) to determine whether there is any criminal, national security, or other factor that would render the alien ineligible for such relief. (B) Completion of background checks The security and law enforcement background checks required by subparagraph (A) shall be completed, to the satisfaction of the Secretary, prior to the date the Secretary cancels the removal of the alien under this subsection. (6) Medical examination An alien applying for relief available under this subsection shall undergo a medical observation and examination. The Secretary of Homeland Security, with the concurrence of the Secretary of Health and Human Services, shall prescribe policies and procedures for the nature and timing of such observation and examination. (7) Military selective service An alien applying for relief available under this subsection shall establish that the alien has registered under the Military Selective Service Act ( 50 U.S.C. App. 451 et seq.), if the alien is subject to such registration under that Act. (b) Termination of continuous period For purposes of this section, any period of continuous residence or continuous physical presence in the United States of an alien who applies for cancellation of removal under subsection (a) shall not terminate when the alien is served a notice to appear under section 239(a) of the Immigration and Nationality Act ( 8 U.S.C. 1229(a) ). (c) Treatment of certain breaks in presence (1) In general An alien shall be considered to have failed to maintain continuous physical presence in the United States under subsection (a) if the alien has departed from the United States for any period in excess of 90 days or for any periods in the aggregate exceeding 180 days. (2) Extensions for exceptional circumstances The Secretary of Homeland Security may extend the time periods described in paragraph (1) by 90 days if the alien demonstrates that the failure to timely return to the United States was due to exceptional circumstances. The exceptional circumstances determined sufficient to