DefaultRackHandler.register_shutdown_hooks