Make sure to always close directory fd
Don't crash on zero nodes in pull
Always continue walk in the face of errors (fixes #1)