- Prevented multi-connection in case connection succeeds but takes some
time to be noticed by isConnected()
- Sleeping the connection thread 1s between each connect attempt to
avoid network spam