I've been accustomed to the expression "buying the farm" for dying all my life. As it happened, I think that early in life I heard a semi-literal usage for it a number of times, referring to some small plane pilot killed in a rural crash - sort of "claiming" a patch of farm land by staking it out with his cadaver. Poppagator's explanation of the origin of the expression rings truer for me, though.