Finalize jags parallel function.