I have a Django server (running on built-in server-container). Want to do something before app shutdown. Is there a way to trigger an event when server (or whole app) stopped/te