streams should not be closed after serializing