stop ioloop in invalidate_cache.py