Fix to closing unused descriptors