fixed GUI window close