How to get a thread exit callback in C#: fixing JNI thread leak in Ignite.NET
ptupitsyn.github.io