Increase queue size to 128 from 16 and handle ctx getting destroyed in
terminator loop while acting on context in the doMapDocLoop.