Relay protection