Pull: only close temporary file once Upstream-commit: 3d4b3cb424ef599a0aa63f44d30c62ef37ca130b Component: engine