Rudimentary segfault-catching in top-level handlers