> Any idea why it's not possible to retrieve a handle

Maybe releasing the handle causes the iteration over the handle list to go awry. I noticed that the sweep code plays games with iteration and close (though that could be a special case).