NXP-12667 try to fix heisenbug by better managing wait for listener exec ...
NXP-12667 fix issues introduced by last commit ... still does not work under windows