Fix WS connection failed message after switching device