relay: stop listening immediately on shutdown