HPCC-11654 Regression Test Engine generates error message at exit in Overnight Build & Test system

Fix I/O operation error on closed file.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>