Keep last non-success exit code.