Cannot archive logs if tar failed