Add try block to read from camera to catch socket errors