About the shutdown grace

For example, my current testing setup is two authoritative match running.
When calling Match_Terminate, ,I’m launching the process to end it safely, but it take some times (turned base card game, so I’m waiting for the end of the turn).
I also placed a logger.Info in the function to see when the function is called. From a second terminal (in the same running folder) I call docker-compose down.
From the time I see the log from Terminate function, if the grace period is > 10s, at 10sec, “nakama exited with code 173” showed. But if I set less than 10 seconds, it does stop after the grace period.