This allows us to use the full retry logic of rimraf in the `onexit` handler. Note this is already covered by failing on Windows test `should remove temp dir on process.exit`.