Shutdown gracefully to prevent races
See
@@ -54,7 +54,7 @@ func (n *Node) Close(graceful bool) error {
// Deprovision shuts down and removes all resources associated with the node.
func (n *Node) Deprovision() {
- n.Store.Close(false)
+ n.Store.Close(true)
n.Service.Close()
os.RemoveAll(n.Dir)
}
