UNO + Ethernet shield + interrupts

If you are connecting the relay to the Arduino, that is very bad.