Clean shutdown for Docker container

Hi, I have created a 7 Days Too Die Docker container but one user found that the container isn’t stopping properly, that’s why I want to know how I can catch the shutdown signal to wait my 7 Days Too Die Server to stop before the container it’s stop.

And I don’t know how to approach this error, I don’t know if this is the place to ask, but I have been using this images and learned a lot of the Docker container.