The pilot made all of the correct decisions. He made a 90 degree right turn over Canada and landed at JFK because of the thump. He did what any other 777 captain would have done. Landing at the nearest suitable airport only is required when you actually lose the engine. Dumping fuel also has to fit into the equation.