Merge pull request #37 from 30x/refactor-haoming

add graceful close() to snapshot downloading manager