Crash handler which traps common crash types and allows for subsequent forensic analysis