DefaultRackHandler.register_shutdown_hooks uses stop