Delete root temp directory eventually

This is a potential for #440.

`#cleanup` will now delete the root directory if the temp filename factory is no longer being used.