This should probably go inside the try clause above, so that it does not run if startFaceDetection() failed.