close cache