Protect a few places while in combat.

Mere [07-13-13 - 10:43]
Protect a few places while in combat.

Also attempt to change focus when entering combat and the config ui is open.
Filename
CommandLine.lua
ConfigUI.lua
diff --git a/CommandLine.lua b/CommandLine.lua
index 07a0048..e2bcc0f 100644
--- a/CommandLine.lua
+++ b/CommandLine.lua
@@ -50,6 +50,10 @@ local function mhfCommands(eventHandler, params)
 end

 function MereHealingFrames.SetVisible(visible)
+    if Inspect.System.Secure() then
+        print("Unable to show or hide frames while in combat.  Please try again while not in combat")
+        return
+    end
 	for key, layout in pairs(MereHealingFrames.Layouts) do
 		layout:SetVisible(visible)
 	end
diff --git a/ConfigUI.lua b/ConfigUI.lua
index df329b1..7dc010b 100644
--- a/ConfigUI.lua
+++ b/ConfigUI.lua
@@ -74,6 +74,7 @@ end
 function MereHealingFrames.Config.UI:Secure()
 	if self.initialized then
 		self.Config_Window:SetVisible(false)
+        self:CloseWindow();
 	end
 end