Mig dbg

If error when restoring the batch, divide in two sub-batches and retry each recursively.