Fix DTE event handlers

Don't let COM event objects get GC'd