Run away relays when external power applied

What I ment to say is "relays", not pins.