Clean up the code that is used to remove the temp directory.