try {
         stgClient = new STG_CLIENT(address, callback, data);
         return true;
-    } catch (const ChannelConfig::Error& ex) {
+    } catch (const std::exception& ex) {
         // TODO: Log it
         RadLog("Client configuration error: %s.", ex.what());
     }
             if (errno == EINTR)
                 continue;
             RadLog("'select' is failed: %s", strerror(errno));
-            //m_error = std::string("'select' is failed: '") + strerror(errno) + "'.";
-            //m_logger(m_error);
             break;
         }
 
             shutdown(fd, SHUT_RDWR);
             close(fd);
             RadLog("'connect' is failed: %s", strerror(errno));
-            // TODO: log it.
             continue;
         }
         freeaddrinfo(ais);
     ssize_t res = ::read(m_sock, buffer.data(), buffer.size());
     if (res < 0)
     {
-        RadLog("Failed to read data: ", strerror(errno));
-        //m_logger("Failed to read data from '" + m_remote + "': " + strerror(errno));
+        RadLog("Failed to read data: %s", strerror(errno));
         return false;
     }
     m_lastActivity = time(NULL);
         {
             impl.m_connected = false;
             RadLog("Failed to write data: %s.", strerror(errno));
-            //conn.m_logger("Failed to write pong to '" + conn.m_remote + "': " + strerror(errno));
             return false;
         }
         size -= res;