don't run the cleanup/shutdown code more than once per process