单项选择题

He had hardly left the building () the bomb exploded.

A. than
B. before
C. when
D. after