File delete needs to happen once we're done processing everything in the file, otherwise we may try to delete the file 2000 times.