Handle socket error, add user stats initialization