Improved error handling
When connection to cgminer wont work, f.e. the ip to cgminer is incorrect