In the United States, abandoning the ship is not explicitly illegal, but the captain could be charged with other crimes, such as manslaughter, which encompass common law precedent passed down through centuries. It is not illegal under international maritime law.