When did ship's captains start going down with the ship?

by [deleted]

Catching the last part of my roommate's Titanic, I saw the ship's captain choosing to go down with the ship.

When did this act become the honorable thing to do for ship commanders, and why?

Vampire_Seraphin