My destroyer fires its ECM Beam (green beam) even if the module itself is destroyed.
I did not check all the other non-weapon modules (SmartBomb, Point Defense, Limpet Launcher, Camouflage, Support Beams, …) if they correctly stop to operate when they are destroyed…