Graceful shutdown should be an inseparable part of every serious application. But graceful shutdowns are often hard, especially in the case of Python. There are numerous questions on StackOverflow ...