Fix connection crash. And, fix boost::enable_shared_from_this use with std::shared_ptr :DD.
Comment the debug loop main.