It's attached to the main instance, so when it goes away so does the event handler.