Ensure body is closed after error is checked Upstream-commit: c2346f6406349caabdc5cfefab9efa2bd32881fe Component: engine