diff --git a/Code/Mantid/Kernel/test/ConfigServiceTest.h b/Code/Mantid/Kernel/test/ConfigServiceTest.h
index 4f1677a521958f4ef64b996db0b4f282382725fb..30574bd40eebc46d3e1021301076e1284f455ec6 100644
--- a/Code/Mantid/Kernel/test/ConfigServiceTest.h
+++ b/Code/Mantid/Kernel/test/ConfigServiceTest.h
@@ -237,7 +237,7 @@ private:
     std::ifstream reader(filename.c_str(), std::ios::in);
     if( reader.bad() )
     {
-      TS_FAIL("Unable to open save config file.");
+      TS_FAIL("Unable to open config file for saving");
     }
     std::string line("");
     while(std::getline(reader, line))
@@ -245,6 +245,7 @@ private:
       if( line.empty() ) continue;
       else break;
     }
+    reader.close();
 
     std::string key_value = key + "=" + value;
     TS_ASSERT_EQUALS(line, key_value);