void OnExit(void)
Provide this member function for any processing which needs to be done as the application is about to exit.