[major] Added heapdump so we can inspect the heap after crash.