In general, I try to always avoid the `deleteOnExit()` method. I've found in the past (at least on older JVMs) that when this method is called, the file is not guaranteed to be removed in all situations and platforms. And even then, it is called only when the VM terminates (which for our case means at the end of the Surefire run of all the tests in `modeshape-jcr`, and possibly only after the build if the tests are not forked into a separate process.) Plus, it is also inefficient because of the way the JVM records that this file needs to be deleted (IIRC, this information is kept in native memory.)

WDYT about having a try-finally block and simply calling `tempFile.delete()' in the finally block?