Bugfix websocket check on unavailable host

Bugfix websocket check on unavailable host