This is covering up a problem where some setup events will be lost if a teardown event is pending