End the Settings dialog