Implement graceful ShardManager shutdown