remove log files at the beginning - not at the end so that it can be analysed