Catch moar crashes...

... Instead of throwing up a useless VC++ dialog box, actually do our error handling.