Fixed leak of file descriptors to Redis when using queued detector.