A new book explains how facing mortality helps people figure out what matters most, providing life lessons for us all.