catch errors in CameraManager and return