connection status is now checked against changes when isConnected is called. So connection losses are detected better. The connect button now behaves better when there are connection losses.