relay: add ability to reconnect after complete disconnection
relay: cleanup