fix use-after-free when an interface event is pending while the interface is being...