If you get some connection error, then you still have a page with "The HTML5 client is loading...". It would probably be better to show something else, and to allow the user to go back to the login page.
To clarify, some connection error with the websocket service, not the "normal" pages. E.g. authentication problems, or a missing session.
Works fine.