Set up fatal error logging.