Attempt to fix JVM crashes
Add ping event