Wait on the child pid during the last step of Double

This avoids turning the child into a zombie.
Merge pull request #22 from titanous/fix-zombies

Wait on the child pid during the last step of Double