clear exception flag after each jni call

otherwise after wrong call application falls down