when leaving
Al salir del cuarto, apagó la luz.
As she left the room, she turned off the light.
Al salir de la estación vi a un hombre.
As I left the station I saw a man.
Por favor, apaga las luces al salir.
Please turn off the lights when you leave.
No te olvides de apagar la luz al salir.
Don't forget to turn off the light when you leave.