Add ability to close websocket connections.