Add error message if unable to create websocket connection

See also #173.