Catch exceptions in RunBatch