Fixed another bug in finalization from heap_close