Due to per-process file locking in windows, shutil.rmtree sometimes fails where it would succeed a second or three later, once Windows thinks the process is done. A utility function that did this would be very useful in projects that use Pyomo/pyutilib, such as IDAES.