File saved before setting processing flag to false