throw new IOException("Output directory could not be created. Canceling task.");
}
}
// Suffix the path with the parallel instance index
p = p.suffix("/" + this.taskIndex);
} else {
// invalid number of subtasks (<= 0)
throw new IllegalArgumentException("Invalid number of subtasks. Canceling task.");
}