Disable LOG_DEBUG call
Change a little connect and disconnect functions