Fix livelock issue:

  + In cases in which the writing of files happends
    before we pause for it. The job will block and neer finish.
    Use a buffered channel.