Ensure SettingsDialog is disposed