use isShutdown flag in benchmark