HPCC-9098 Fix release of an exception that could be rethrown

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