Close the RegexBuilderWindow after the Regex has been added.