network issues can cause websocket connection to die
monitor connection (ping?) and shutdown if failed
shutting down will allow external monitor (e.g. supervisor) to restart yabot
is this something that should be in the websocket library? alternatives to phpws?