added isConnect check for all clients