Thanks very much for your suggestion.
Indeed, adding a pause of 15 seconds (i.e. sleep 15) before launching the plugout_driver sorted out the problem.
I also added the option of saving the images, and many more... plugout_drive has just saved a hell of time...