SYMPHONY-1928 Improved stability in Remove-DirectoryFailSafe.