Prevent race between reset() and in-flight events (thanks @disruptek)