The suggestion is to make it so you can only use 'attack ground' fire on buildings that are not in visual range or radar range (or are stealthed). This means your units will not automatically fire on these buildings. You yourself have to select attack ground and also have to tell them when to stop.
This would remove the 'magic trick' where your units magically know when a building outside of radar/visual range is destroyed and thus know when they can stop firing and swithc to the next target. It would also make stealth work as it should.
Not sure if this is easily doable in the game engine though...