As a general AI change, can you have the unit recalculate what its best target is periodically when hitting walls? Ie. At the outset of a fight, when you are breaking into main walls, jugg sees target X on the other side of a wall so it attacks the wall. Target X is destroyed by other units, and jugg does a recalculation. If there are more targets on the other side, it continues its wall breaking. However, if there are no more targets on the other side, then it breaks off its attack on the wall to find other targets. (This comes up more when you've half destroyed a base and there are targets getting picked off on the outside of a base while you are on the inside). Additionally, perhaps this is AI tweak would be better for all units except bombers because bombers can actually take down a wall in reasonable time.
Yes, must admit I've lost a couple of battles because my gunners got in first and that sent my Juggs on a walk (on mass) around the perimeter of the base, picking off smaller targets... I steady of heading into the base as planned. Such is the game...