Fixed issue 32. Check network connectivity before operation

Now user is prompted with generic error.
Asked to check internet connectivity. 
we can use `alertify.alert(YOUR_ERROR_MESSAGE)` to tell users about this error, and don't shut down Atraci in this scenario because their network may get back later again !