added support for tracking exit status of popen4() processes