hmm, node docs clearly states that the flush function get's a callback that it's supposed to call when done...