Dispose fram after it is written to disk