fixed #5. Try to connect to socket 10 times, fail after.
Merge pull request #11 from aglenn/webreconnect

fixed #5. Try to connect to socket 10 times, fail after.