batch_learner: Removed IOError in favor of Exception as IOError is misleading. Suggests it was a system error.