When you leave a room be sure to close the light.(What’s wrong with this sentence?)

You turn off a light. You do not close a light.

When you leave a room be sure to close the ...