Yeah, specifically I'm concerned about the semantics of shutting down/starting up the scheduler concurrently with event expiry. I think... locking during the flush fn should be OK though.