Added handle_fatal_error flag to enableErrorHandling