Finished adding dialog on app exit.