close the returned channel when no more data should be written to it
Merge branch 'master' of https://github.com/attwad/nessie