EXPERIMENTAL API: export client close for streaming, add unit test