Foolproof way to check for nonzero (error) return code in windows batch file – Stack Overflow