cleanup for file download