I forgot to mention that the file "bar" is created but empty. So it seems the Iteratee opens it and then closes it prematurely.