Was that before or after you started a "New" terrain?
The first time you run TE it's very unstable, I think because it has no disk files to work on.
If you had a terrain up when that happened you might want to post in the bug forum exactly what you were doing, but you're a programer, you already know that.
