Added an exit-confirmation dialog (test).