Create a web socket connection in a try..catch.. block to deal with IE10 security sandbox issues.