Exit with a non-zero if error
Exit with a non-zero if error

Add functions throughout script to detect failures, and exit
appropriately.

Closes #14063

harterj/moose,dschwen/moose,idaholab/moose,jessecarterMOOSE/moose,permcody/moose,bwspenc/moose,sapitts/moose,lindsayad/moose,andrsd/moose,SudiptaBiswas/moose,permcody/moose,milljm/moose,SudiptaBiswas/moose,bwspenc/moose,harterj/moose,dschwen/moose,laagesen/moose,lindsayad/moose,lindsayad/moose,dschwen/moose,nuclear-wizard/moose,jessecarterMOOSE/moose,milljm/moose,nuclear-wizard/moose,milljm/moose,idaholab/moose,laagesen/moose,harterj/moose,andrsd/moose,idaholab/moose,milljm/moose,lindsayad/moose,bwspenc/moose,SudiptaBiswas/moose,permcody/moose,jessecarterMOOSE/moose,harterj/moose,andrsd/moose,nuclear-wizard/moose,jessecarterMOOSE/moose,sapitts/moose,dschwen/moose,sapitts/moose,idaholab/moose,nuclear-wizard/moose,jessecarterMOOSE/moose,bwspenc/moose,harterj/moose,laagesen/moose,bwspenc/moose,sapitts/moose,laagesen/moose,dschwen/moose,SudiptaBiswas/moose,idaholab/moose,sapitts/moose,andrsd/moose,SudiptaBiswas/moose,permcody/moose,milljm/moose,laagesen/moose,andrsd/moose,lindsayad/moose