Added configuration option for whether or not the user will be shown a confirmation dialog when closing the application.