allow to close buffered chan to exit streaming