clean up resource descriptors