Reap processes and close fds when exec fails

Fixes OHAI-455: http://tickets.opscode.com/browse/OHAI-455
Add regression test for popen4 zombie leak
Merge branch 'OHAI-455'