Rescue error in batch