Changed to use clientStateChanged for better connection indication
Disabled som qDebug:s