I'm using some external, i.e. jar, library in my application which unfortunately does not properly clean up after itself, i.e. the second time I create an object from this library it does not work as expected. I suspect that it is because the library creates some threads which keep running, but I'm not sure.
Is there any way to force a complete clean up of the mess that external library creates?