The ground relay should not be active when there is a grid/generator source connected. The relay should disconnect when the primary relay closes in normal operation this is to be compliant with many grid codes that the neutral ground bonding is done at source