Index: /trunk/FACT++/src/Connection.cc
===================================================================
--- /trunk/FACT++/src/Connection.cc	(revision 10821)
+++ /trunk/FACT++/src/Connection.cc	(revision 10822)
@@ -123,6 +123,9 @@
 void Connection::HandleWriteTimeout(const bs::error_code &error)
 {
+    if (error==ba::error::basic_errors::operation_aborted)
+        return;
+
     // 125: Operation canceled (bs::error_code(125, bs::system_category))
-    if (error && error!=ba::error::basic_errors::operation_aborted)
+    if (error)
     {
         ostringstream str;
@@ -155,5 +158,5 @@
 void Connection::HandleSentData(const bs::error_code& error, size_t n)
 {
-    if (error)
+    if (error && error != ba::error::not_connected)
     {
         ostringstream str;
@@ -165,7 +168,16 @@
     }
 
-    ostringstream msg;
-    msg << n << " bytes successfully sent to " << URL();
-    Message(msg);
+    if (error == ba::error::not_connected)
+    {
+        ostringstream msg;
+        msg << n << " bytes could not be sent to " << URL() << " due to missing connection.";
+        Warn(msg);
+    }
+    else
+    {
+        ostringstream msg;
+        msg << n << " bytes successfully sent to " << URL();
+        Message(msg);
+    }
 
     // This is "thread" safe because SendMessage and HandleSentMessage
@@ -236,6 +248,8 @@
 void Connection::HandleConnectionTimer(const bs::error_code &error)
 {
-    // 125: Operation canceled
-    if (error && error!=ba::error::basic_errors::operation_aborted)
+    if (error==ba::error::basic_errors::operation_aborted)
+        return;
+
+    if (error)
     {
         ostringstream str;
@@ -286,4 +300,5 @@
     fConnectionStatus = kConnecting;
 
+    // FIXME: "No route to host (syytem::113)" gives error:"Operation already in progress. (system:114)"
     ostringstream msg;
     if (!host.empty())
