Test try-catch block around web socket connect to tolerate ws errors