Delete temporary directories at the end of tests (RIPD-460).

Reviewers: @josh-ripple @nbougalis