added ShutdownDetector as a mechanism to cancel long-running requests