HPCC-12729 Rethink error handling

Signed-off-by: James Noss <james.noss@lexisnexis.com>