he had been so despondent that he had gone into a near-psychotic melancholia for months ; he had almost done away with himself , and the incident had left emotional scars on him for the remainder of his life .