cleanly close websocket sinks