use nextTick to always emit 'close' after 'end' of last part. closes #36