Added the prompt message box when the user wants to exit the program