fixed cleanup thread
use the jni factory for the jni button