shutdown if miner client fails to connect

Right now, there's a hang which can be reproduced by hardcoding `1` in place of `*maxConnRetries` while trying to connect to the miner:

https://github.com/conformal/btcsim/blob/master/miner.go#L110

We should cleanup and shutdown instead.