; . (b) Treatment of departures In the administration of section 101(a)(15)(D) of the Immigration and Nationality Act, as added by subsection (a), an alien crewman shall be considered to have departed from Hawaii, Guam, or the Commonwealth of the Northern Mariana Islands after leaving the territorial waters thereof, without regard to whether the alien arrives in a foreign state before returning to Hawaii, Guam, or the Commonwealth of the Northern Mariana Islands. (c) Duration A visa issued to an alien crewman under section 101(a)(15)(D)(iii) of the Immigration and Nationality Act— (1) shall remain in effect during the 3-year period beginning on the date on which the visa is issued by the Secretary of State; and (2) may be renewed for successive 3-year periods under the same terms and conditions applicable to the issuance of a new visa to a nonimmigrant under such section. (d) Effect of termination of employment on visa status (1) In general Except as provided under paragraph (2), a D–3 nonimmigrant whose employment is lawfully terminated by his or her employer, or by an association of employers, before the end of the period described in subsection (c) shall depart the United States not later than 10 days after the effective date of such termination. The employer or association of employers, as applicable, shall pay for the cost of transportation and subsistence necessary to return the alien to his or her country of origin. (2) Change in employment An employer or association of employers may employ a D–3 nonimmigrant described in paragraph (1) or a D–3 nonimmigrant who amicably terminates employment with another employer if the employer or association— (A) enters into a written agreement with the D–3 nonimmigrant that complies with the requirements under section 4