close cache file to avoid warning message.

without this change there's a warning printed out in python3.x