Bugfix if the camera is not available
Second bugfix: stopping camera when no camera is available