Terminating elegantly: a guide to graceful shutdowns | Hacker News Reader