Some important rewiring and cleanup for game exit/entry.