[BACKLOG-796] prevent browser freeze on invalid connection

avoiding event loop and showing generic error message
Merge pull request #563 from tgf/backlog796_master

[BACKLOG-796] prevent browser freeze on invalid connection