Called when the application is about to close. Any artifact can invoke the shutdown sequence by calling shutdown() on the app instance.

The Shutdown script will be called before any ShutdownHandler or event handler interested in the ShutdownStart event.