Replace sleep with connect loop for ncsvc connection.
Merge pull request #8 from johnou/master

Replace sleep with connect loop for ncsvc connection.