Use iterator in evict code to avoid removing non-expired event loop