I think he/she should stay as long as there is still something to be done to save the passengers, however I don't believe they should "go down with the ship" if they haven't gotten everyone off. Asking someone to commit suicide is a bit much.