Flyback diode on the relays may help.