code: protected static void shutdown() {
  
  		// stop discovery service
  		WebcamDiscoveryService discovery = getDiscoveryServiceRef();
  		if (discovery != null) {
  			discovery.stop();
  		}
  
  		// stop processor
  		WebcamProcessor.getInstance().shutdown();
  	}
docs: Shutdown webcam framework. This method should be used <b>ONLY</b> when you are exiting JVM,
  but please <b>do not invoke it</b> if you really don't need to.