Add more error checking

- Check for internet connectivity before starting a computation
- Add error message when web sockets disconnect unexpectedly
- Add timeout error message
Merge branch 'branch-websocket-fixes'