Fix for warning when quitting from confirmation dialog