单项选择题

Don't forget ______the window before leaving the room.

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