Deep recursion in deinit, revisited

Thank you. Please have a look at one approach and its implementation, hope you can find something useful in it.