Ah I see, looks like it's not releasing the webcam when you close it the first time, so Windows can't access it. Not sure how to fix that since it might be a bug in the Webcam object.
Maybe have exiting only possible from a custom button and see if the webcam object has a "stop viewing webcam" event.