Some more improvements to only mark the attachment as processed when the split jobs have finished