keep track of tmp files centrally and batch delete them upon exit