fixed hang on exit by turning off YUV image-grab first before shutdown