improve error handling in the case of network disconnection
diff --git a/client/lib/main.js b/client/lib/main.js
index 157d76d..ca238c9 100644
--- a/client/lib/main.js
+++ b/client/lib/main.js
@@ -70,9 +70,14 @@
     }));
 
     var keepAlive = setInterval(function poke() {
-	ws.send(JSON.stringify({
-	    type: 'keep-alive'
-	}));
+	try {
+	    ws.send(JSON.stringify({
+		type: 'keep-alive'
+	    }));
+	} catch (e) {
+	    console.error('It looks like your network went offline. Please restart wskdb when your network is live.');
+	    process.exit(1);
+	}
     }, 5000);
 
     process.on('exit', function onExit() {