Not specific to this issue, but it would make sense to throw away the JVM process anyway if an `OOME` or an `SOE` is encountered, because there is no guarantee that the runtime is in a consistent state afterwards.