Added safeguard to verify retrieved client is still alive