Cleanup Java interop.