application request to quit event, for example, this is triggered the window is closed in a desktop application