RobSpectre/Twilio-Hackpack-for-Heroku-and-Flask — pull request #2 by Timothee (2012-03-25 02:34:26+00:00)
Title: Add graceful shutdown for SIGTERM

...which Heroku tends to send now and then. (I guess mostly if the app is idle?)
Without this change, you get an error in the logs and if you have LogEntries installed for example, that means an email sent to you.

But really, it's mostly because I was just having the problem myself and to look like I know what I'm doing. :)