Update websocket example - stop websocket threads per server context instead of using a static variable