Remove log and recognize endconn command