clean cache when exit