Ensure previous client is fully shutdown before re-connecting.