add quit to relay