Tightens up the handling of segment cancelations. Also modified the ConcurrentMDXTest so that it behaves a bit more realistically.