Fixed issue 32. Check network connectivity before operation

Now user is prompted with generic error.
Asked to check internet connectivity. 
please move your code here, let's handle error first and left the other functionalities in `else`

```coffescript
if error 
  alertify.confirm('Please check Internet Connection.
    Connectivity Error : (' + error + ')', (e) ->
      if e
        win.close()
  )
```