use a single thread to clean the tmp files