Shutdown Rasa Server without KeyboardInterrupt

I understand that the Rasa Server should not go down, but in our case, it does go down as part of a scheduled server reboot. In such a case, I need to be able to gracefully stop it to not trigger keyboardinterrupt in the logs. Is there any way to do this?

So far, I’ve tried using “shutdown_with_message”: true in pm2, which my bot is onboarded to, but that has had no affect. I assume that I’ll need to make code change to the bot itself then. I wanted to know if anyone has done anything similar.