Check for zombie processes

change call to a polling mechanism. 
This will now check for zombie processes