Can you set it to just use a temp directory? This way if there's junk files lying around, it won't matter.  You can also possibly try this.  http://docs.oracle.com/javase/7/docs/api/java/io/File.html#deleteOnExit()