Close window after saving config