单项选择题

The children were surprised when the teacher had them ______ their books unexpectedly.

A.closed
B.to close
C.closing
D.close