Add a temporary file flusher for diagnostics