Added "exitOnFinish" parameter on runBuild.