See bug 39871 comment5. batch_update should raise an exception that can be caught by Koha/BackgroundJob/BatchUpdateItem.pm.