You could counter some of this with an "interference bug".... if the ship has a factory is running, it interferes with shields, draining them or completely disabling them... it could also disable cloaking. And this could apply if any factory is turned on, regardless if it is actually making...