Fix premature close of build output on pull Upstream-commit: e54d1629415d82bada1952bd7be7ccfdc21dd015 Component: engine