patch applied (cabal-branches/cabal-1.4): Eliminate use of bracketOnError, use handle instead