add a crash handler at initialization

If it's initialization exceptions, I don't see why using `catch` around the entire `appMain` is insufficient. It's much better to use something like that instead of modifying a global exception handler.