Feature request - Linux edition (Windows too if you like?)
Would it please be possible to add a tag that would cause the application to exit after 3 failed reconnection attempts?

The reason i ask for this is that i have a mining setup that switches based on profit, but it does this by closing ports and opening others for the next coin.

I want to use this miner for the XMR portion of the script as in my testing it appears to be the most superior. Right now i'm using ccminer as xmrig doesnt have, to my knowledge the ability to do this.

So just to be clear, this is the type of thing i mean.

```
   IF 
       primary stratum server does not respond/connection refused/bad log in credentials.
   THEN
       exit xmrig
   END 
```

Thanks.