Cleanup temporary directory after being finished