Add error message if unable to create websocket connection

See also #173.

Maybe we should wait with this until next release?