Attempt at fixing spurious failure to delete temporary folder