I know and understood that. What I was showing is when your Activity calls the sub in the class, when that sub is finished and it has checked the condition and it tests out to call the second Activity, have it then to call a sub in the main calling Activity, which in turn calls the second Activity.
If your class is declared in process_globals, it should still be running. If not, it is the checks after the call to start the second Activity that is keeping it running, You should compllete all of your checks before you start the new Activity.
I would assume that the class code like a code mode is all ways loaded in memory.