Fixing a few more things.

Chunks need to keep their program alive so that their destructors are
not cleaned up before they're used.