The feature implemented in #1044 results in handed-over chunks lacking the "footer" to add more values. A simple way to work round the problem would be to reset the global flag before beginning a hand-over. Maybe cleaner to add a "closed" flag to each chunk so it knows whether further writing is expected?