FX: [jni] useExceptionCheck rather than ExceptionOccured

ExceptionOccured creates a local ref on a jthrowable that we leak.
FIX: [amc] check for exceptions on everything
Merge pull request #6022 from koying/moreamcfixes