clean up the temporary files

Arrange to clean up the temporary files.