单项选择题

When Jack arrived, he learned Mary ________ for almost an hour.

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