Flush csv output as soon as result comes in