The example demonstrates a graceful shutdown and is more akin to what people should use in real applications.