There as clearly some areas where the file processing flows are flawed. Have a look over the flows and tighten these up. Ideally we add some tests in for this