Made mjpg thread a daemon thread