HPCC-12307 Add __declspec(noreturn) to functions

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #6470 from ghalliday/issue12307

HPCC-12307 Add __declspec(noreturn) to functions

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>