单项选择题

When I arrived, I learned Mary ______ for almost an hour.

A.had gone
B.had set off
C.had left
D.had been away