Witnesses saw him pouring gasoline into his truck (to make the "accident" look more spectacular) before driving it onto the tracks, calmly getting out and walking to the side to watch.
It was all a ploy to generate sympathy from his estranged wife.
He'd better hope they put him away forever, because one he killed was a Sherifs deputy. Law enforcement has a distinct tendency to avenge such things.