I'm hoping this will help with the recent mscoree:comtest failures. Based on the test output, it appears that the 5 second wait is timing out.
I was going to just add time, but, well, it would also be nice to check the return value of the wait, and we already have a function that does that so...