Cleanup all the materials.