Support for reaping zombies

This calls waitpid every 10 seconds to ensure no dead daemons stick around.