better exception handling
error handling, in-websocket-pinging