Use unsafeCleanup to clear temporary dirs, closes #345.
Merge pull request #386 from twitter/tmp-dir-cleanup

Use unsafeCleanup to clear temporary dirs, closes #345.