The captain is not obligated to drown on principle. There are, certainly, examples where a captain has elected to remain on a boat while it sank into the sea (E. J. Smith, captain of the Titanic, is perhaps the individual best known for doing so). This, however, is not a reasonable job expectation.