Delay collector disposal until all file writing has completed.