After 17 brushes with death, a writer reflects on coming 'back from the brink'