Finish collecting when error