Added error handling in ecrobot lib batches