Exit when the constructor fails to open a camera.