fixed close polling in streaming queries