Wire cleanupSemanticCache

Destroy semantic caches when the host has no more semantic operations queued.