Updated tests to use websockets instead of browserchannel
Added try/catch around websocket sends