CORE-5832: make error trapping for services a little more general
CORE-5832: several updates to the job submission endpoint