Death animation doesn't drop targets
Units with lengthy death animation (eg battleship, strike comm) are kept as targets for e.g. attack or repair commands until they finish dying. Perhaps other units should retarget (finish the command) immediately when they reach 0 health? Would probably need some engine interface to get all units targeting given unit to be efficient either way.
This would want engine support. Getting the targets of a unit is not something lua is set up to do efficiently. A related ticket would be about dropping targets when a unit changes allyTeam.
Part of the question is whether this would even be desirable. There is the visual consistency of the attackers only moving on when the victim turns into wreck, and the animations are short enough (and the units with death animations rare enough) the gameplay isn't really that much affected.
I think it would be desirable. At least to have the option. Sitting around while the Shogun explodes looks rather silly. We could also use such de-target tech to improve underground Outlaw hax, if it requires improvement. Perhaps check out whatever the engine does for crashing aircraft, I think there was some fix to make them not be chased forever at some point. If not, then that is another thing to fix.