fixed config window close exiting