Fixing exit code return on error case in Windows. Upstream-commit: a590a6b1800778c86f6649b64283d29d14d83024 Component: engine