Philosophy and literature facing mortality — from the Stoics and Montaigne to Tolstoy’s Death of Ivan Ilyich, the great meditations on the end.