Persistent engine and manual cleanup

Ok, I’ve tried, but caliing globals() throws the following exception: SystemError: Object reference not set to an instance of an object. , but not only in the closed event, in the main script as well.