When the PiTeR code opens the camera, the following errors are reported:
libv4l2: error setting pixformat: Device or Resource busy
HIGHGUI ERROR: libv4l unable to ioctl S_FMT
HIGHGUI ERROR: V4L: Initial Capture Error: Unable to load initial memory buffer
https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=71320
Would seem to be related to this.