Interesting, I'd have thought you'd have kited the commando and spider back to the IPL turrets which are out of range of the MM turrets before going for the turret generator.
Why did this bug occur? Something you've tweaked?
Don't know why it occurred since I'm currently playing stock, but there was already a thread in the bug report subforum regarding it, so at least one other person had it happen.
I tried kiting the mechs on my first or second attempt, but since several of the turrets mount LRMs... well, as long as they have someone to spot for them they'll continue to fire. Not a lot of damage per turn, but it adds up and it isn't hard to prevent it. Getting out of range might be possible if you run far enough, but it sure doesn't appear to be practical.