The captain goes down with the ship
"The captain goes down with the ship" is the maritime tradition that a sea captain holds the ultimate responsibility for both the ship and everyone embarked on it, and in an emergency they will devote their time to save those on board or die trying. Although often connected to the sinking of RMS Titanic in 1912 and her captain, Edward Smith, the tradition precedes Titanic by many years.
Source: Wikipedia — The captain goes down with the ship (CC BY-SA 4.0)