One more attempt to resolve the race conditions during abnormal terminations. Ensure that no matter which fires first (iof complete or waitpid), we always go thru the state machine to properly record the number of terminated procs.
Merge pull request #108 from rhc54/cmr/errhander2

One more attempt to resolve the race conditions during abnormal termination