In maritime law, the ship's master's responsibility for their vessel is paramount, no matter what its condition, so abandoning a ship has legal consequences, including the nature of salvage rights. Abandoning a ship in distress may be considered a crime that can lead to imprisonment.