Index: /trunk/FACT++/src/Fits.cc
===================================================================
--- /trunk/FACT++/src/Fits.cc	(revision 11837)
+++ /trunk/FACT++/src/Fits.cc	(revision 11838)
@@ -258,6 +258,10 @@
     }
 
+    const string name = fFile->GetName();
+
     delete fFile;
     fFile = NULL;
+
+    fMess->Info("Closed: "+name);
 
     fMess = NULL;
Index: /trunk/FACT++/src/FitsFile.cc
===================================================================
--- /trunk/FACT++/src/FitsFile.cc	(revision 11837)
+++ /trunk/FACT++/src/FitsFile.cc	(revision 11838)
@@ -145,5 +145,8 @@
 {
     if (!file)
-        Close();
+    {
+        Error("Fits::SetFile failed: NULL argument.");
+        return false;
+    }
 
     if (fFile)
@@ -392,5 +395,4 @@
         const string name = fFile->name();
         delete fFile;
-        Info("Closed: "+name);
     }
 
