Node now resets count and distance when losing upstream connection.