remove tmp dir when finished