Clean up logs before restart.