add retry process

make sense. I think also a good idea to check with `git fsck`.