Having an on-end event handler can help to save resources, reduce the use of database connections.
For example, you might have multiple form elements on multiple pages for input to 100 database fields. On each submission, you could store the form data in a session variable, and on the last submission, store the data with one database query. If you want to store every bit of data, regardless of whether or not the user completes all form pages (makes the final submission), then you must query the database for each page request or you must have an on-end request handler that runs the database query.
I am working on a page that contains multiple questions, displayed one by one using positionable elements(divs). For each question answered, the data is transferred to a hidden frame which sends data to the server for storage (either in a session variable or a database). I would like to store the data in a session variable and wait until the end or a session timeout to use one query to update the database. Without a session on-end event handler, I cannot think of anyway to do this thing.