In maritime law the responsibility of the ship's master for his ship 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 [REF].