fixup! handle error within heapdump function