Fix issue: only first snapshot sucess

It will fail to take another snapshot with an exception that tells timeout.
Merge pull request #687 from PinZhang/pzhang/fix-snapshot

Fix issue: only first snapshot sucess