Update cpu-miner.c

Customized to exit if max connection errors reached.