issue:425058 use shutdown hook to clean cache

Change-Id: I02761dba94e0e1ae89285dabe438877461aea349