Make Resurrect function reset most of the runtime state (Fixes #2181)