正常退出时正确清理该清理的缓存

Signed-off-by: Mcgrean0519 <389314570@qq.com>