Coping with terminal illness