diff --git a/cmd/frostfs-node/morph.go b/cmd/frostfs-node/morph.go index 9c73214f08..34c6742413 100644 --- a/cmd/frostfs-node/morph.go +++ b/cmd/frostfs-node/morph.go @@ -56,7 +56,10 @@ func initMorphComponents(c *cfg) { fatalOnErr(err) } - c.onShutdown(cli.Close) + c.onShutdown(func() { + c.log.Info("closing morph components...") + cli.Close() + }) if err := cli.SetGroupSignerScope(); err != nil { c.log.Info("failed to set group signer scope, continue with Global", zap.Error(err))