he was thinking that the deep depression which followed grave illness could sometimes be avoided if the person afflicted had a deep enough investment in life : artists , musicians , a carpenter whose thoughts centered on some half-completed building .