Ensure handle to temporary is closed before temporary file expires.
Ensure handle to temporary is closed before temporary file expires.

Fixes bug on Windows.

Signed-off-by: Edward Z. Yang <dbd597f5635f432486c5d365e9bb585b3eaa1853@cs.stanford.edu>

Heather/cabal,thomie/cabal,kolmodin/cabal,thomie/cabal,sopvop/cabal,headprogrammingczar/cabal,bennofs/cabal,themoritz/cabal,kolmodin/cabal,sopvop/cabal,themoritz/cabal,Heather/cabal,themoritz/cabal,bennofs/cabal,mydaum/cabal,mydaum/cabal,gbaz/cabal,gbaz/cabal,sopvop/cabal,headprogrammingczar/cabal