Do not remove log file of a command with an error.