relay: fix up disconnects when not connected