when GUI window closes, application exits