Absolutely the right thing to do, but they only did it after days of headlines of big sponsors pulling out as well as online petitions. I hope this serves as an example to other cities hosting upcoming events. There are a lot of conferences that still have not been cancelled.
Millions of dollars will be lost, but the health of millions + the reputation of the city was at stake. That was the right call IMHO.