small update to form to handle errors, now the application won't crash if the webcam is disconnected