Implementing group disconnection with a safety relay