improved relay server-loss handling; updated agent.subscribe() to fulfill AFTER response received