Update cpu-miner.c

Customized to exit if max connection errors reached.
Merge pull request #1 from nau88xj/patch-1

Update cpu-miner.c