Don't open a raft snapshot file until we have a successful snapshot response. (#9894)
Don't open a raft snapshot file until we have a successful snapshot response. (#9894)

* Don't open the snapshot file until we have a successful response

* Check the success of Close if nothing else errors
hashicorp/vault,hashicorp/vault,hartsock/vault,rnaveiras/vault,hartsock/vault,rnaveiras/vault,hartsock/vault,hartsock/vault,hashicorp/vault,hashicorp/vault,hashicorp/vault,rnaveiras/vault,hashicorp/vault,hartsock/vault,rnaveiras/vault,rnaveiras/vault