Added a (really crappy) crash handler