fix a crash when IATHookImpl is destroyed