Index: trunk/FACT++/src/MessageImp.cc
===================================================================
--- trunk/FACT++/src/MessageImp.cc	(revision 14543)
+++ trunk/FACT++/src/MessageImp.cc	(revision 14544)
@@ -109,6 +109,5 @@
 {
     static mutex mtx;
-
-    mtx.lock();
+    const lock_guard<mutex> guard(mtx);
 
     switch (severity)
@@ -125,6 +124,4 @@
     }
     fOut << time.GetAsStr("%H:%M:%S.%f") << " - " << txt << endl;
-
-    mtx.unlock();
 
     return 0;
