Batch consuming and error handling