add Pre Ending Listener
Adds a listener that will run right before the script ends. This is useful for cleanup tasks.
Parameters
listener
the script pre end listener
Adds a listener that will run right before the script ends. This is useful for cleanup tasks.
the script pre end listener