Bugfix: Application is not closed when 'Cancel' option is chosen in confirmation box