prevent infinity error_handler calling