These methods wrap any unexpected checked exceptions in AssertionError after logging them. The next commit will use this to enforce our exception specifications for methods that wrap JNI calls.