close cache after reading