Avoid losing the desired exit status in command_failed()