Prevent silent exceptions after fail in takePicture()