In the United States, there is no explicit law requiring a captain to remain on their ship, but they could face criminal charges if they acted with negligence or extreme disregard for human life in abandoning a vessel in distress or causing a maritime accident in the first place.