Fixed tasks finalization on error condition
Merge branch 'master' of github.com:paoloditommaso/nextflow