Clean up even if / when a callback throws.
Credit: @phated
Reviewed-By: @othiym23
Reviewed-By: @isaacs
Fixes: npm/inflight#1
PR-URL: https://github.com/npm/inflight/pull/3
Restore the ability to do one-shot upgrades from the versions of npm
bundled with Node 0.8 to npm@3, which simplifies using Travis with old
Node and new npm, for compatibility testing purposes. Older versions of
npm repack packages on install, which works poorly with the way npm@3
handles bundledDependencies with flat trees.
Fixes: #9668
PR-URL: https://github.com/npm/npm/pull/9981