Sys.Application.dispose Method
Releases resources and dependencies held by the client application. This member is static and can be invoked without creating an instance of the class.
Sys.Application.dispose();
Remarks
Use the dispose function to releases resources and dependencies held by the client application. This includes all event handlers and objects registered as disposable through the registerDisposableObject method.