fixed creating log files during tests
SONAR-4898 - Fixed hangs when exiting after a failure.