HPCC-10684 - Prevent close of old + start of new session clashing

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>