; and (II) shall automatically cancel any other valid visa or entry documentation that is in the alien’s possession. (3) Exception to comply with united nations headquarters agreement Sanctions under paragraph (2) shall not apply to an alien if admitting the alien into the United States is necessary to permit the United States to comply with the Agreement regarding the Headquarters of the United Nations, signed at Lake Success June 26, 1947, and entered into force November 21, 1947, between the United Nations and the United States, or other applicable international obligations. (4) Definition of family member In this subsection, the term family member means, with respect to an individual— (A) a spouse, child, parent, sibling, grandchild, or grandparent of the individual; and (B) a child, parent, or sibling of the spouse of the individual. (d) Termination of sanctions The provisions of this section shall terminate on the date that is 30 days after the date on which the President— (1) determines and certifies to the appropriate congressional committees that the Government of Iran is no longer complicit in or responsible for the wrongful and unlawful detention of United States citizens or lawful permanent resident aliens with significant ties to the United States; and (2) transmits to the appropriate congressional committees the certification described in section 105(d). . (c) Clerical amendment The table of contents for the Comprehensive Iran Sanctions, Accountability, and Divestment Act of 2010 is amended by inserting after the item relating to section 105C the following new item: Sec. 105D. Imposition of sanctions with respect to Iranian persons who engage in certain actions against United States citizens or lawful permanent residents. . (d) Amendments to general provisions Section 401 of the Comprehensive Iran Sanctions, Accountability, and Divestment Act of 2010 ( 22 U.S.C. 8551 ) is amended— (1) in subsection (a), in the matter preceding paragraph (1), by striking and 305 and inserting , 105D, and 305