Added a quick&dirty way to pass a callback function to the fatal error handler.