Improved Stats.log file open error. It should no longer prevent the script from initialising properly.