Close the webcam file when the light is off

This allows to save battery power because even if we're not reading
from the camera, the light cannot be turned on if the camera is not
streaming.

Fixes #1

Signed-off-by: Guillaume Clement <gclement@baobob.org>