Added warning when json file cannot be written out
This prevents failure when the JSON file cannot be written out. If there already exists a file, things can continue just fine, but if no file exists and one cannot be written, then the camera will throw an exception itself.