Allow stopping rimraf during the process.