Fixes GH-140: Be more resilient to OOM issues on forked JVMs. This is not a complete solution. I don't think a complete solution exists.