removed defer close causing stream to shut midflow during update