Exit confirmation

Added a confirmation dialog to the exit command.