Fixed bug where temp dir wasn't cleaned up on exit.

I can't believe I made this mistake again. Third module running.