Remove tmp files after storing their data