Please be sure of you have the doors and windows closed when you leave.
Is it a right sentence? Please.
It should read:
Please ensure/make sure that you close the doors and windows before/when/as you leave.
I can't use "be sure of" in this case? Please.