Target closest node when pathfinding fails

If pathfinding fails to find the destination, target the closest node
that was reached instead.