How do you have the PIC connected to the coil? Relay, opto?

When I have PICs near welders I pit the PIC in a metal box with the power supply and box connected to a good earth ground. Faraday thing.