Add SIGSEGV handler that logs.