fix test_webchannel. close the websocket after the manager.