MDL-45455 quiz cron must rollback transaction on error.