Hopefully fix compartment-related segfault in freeJavaContext