added connect status check to client sdk