when the thread that open it no longer exists. Add tests to kill threads that have open cursors and sessions.