Rename log files to archive them, fix issue caused panic when a logfile was missing