Added error handling when mining app not available or socket is opened
on wrong IP/port