This covers the case where the application didn't handle the quit or terminating event, we still need the main loop to finish.
This covers the case where the application didn't handle the quit or terminating event, we still need the main loop to finish.