HPCC-10910 Ensure abort is checked before spawning a child

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>