单项选择题

If he had remembered () the door, this would not have happened.

A. to have been closed
B. to have closed
C. having closed
D. to close