The fundamentals of a structured exception handler