Moved the deletion of temporary snapshot directory to Close method, and call it only if there is an error
Moved the deletion of temporary snapshot directory to Close method, and call it only if there is an error

hashicorp/raft,hashicorp/raft,otoolep/raft