单项选择题

All flights () because of the terrible weather, they had to go there by train.

A. having been canceled
B. had been canceled
C. having canceled
D. were canceled