Add some corrected dealing with destroyed objects and other corrections in exec.c