Add a shutdown confirmation dialog.