code: public void releaseFrameGrabber() {
  		synchronized(this){
  			if(fg!=null){
  				try {fg.release();}
  				catch (Throwable t){
  					t.printStackTrace();
  					throw new StateException("Cant release resources used by "
  							+"framegrabber", t);
  				}
  				fg = null;
  				state.put();
  
  			}
  		}	
  	}
docs: This method releases the <code>FrameGrabber</code> object allocated
  previously with <code>getRGBFrameGrabber()</code>,
  <code>getBGRFrameGrabber()</code>, <code>getYUVFrameGrabber()</code>,
  <code>getYVUFrameGrabber()</code>, <code>getJPEGFrameGrabber()</code> or
  <code>getRawFrameGrabber()</code>.
  This method must be called when the <code>FrameGrabber</code> object is
  no longer used, so low-level resources can be freed. This method does
  nothing if no <code>FrameGrabber</code> object has been allocated in the
  first place.