When you run this line:
gameObject.SetActiveRecursively(false);
you are deactivating your game object, which means this script, being attached to the game object that was deactivated, will stop running as well.
↧