Flushing stdout in export words callback