I put a patch on TS-1807 that has changes that we have been using to let shutdown work properly on PluginVCs so we can really simulate the things that a client might do on the result of TSHttpConnect(). It also includes a variety of changes to various parts of the machinery to get things to shutdown more gently when they get an EOS (which is what the shutdown causes.)
I would appreciate people looking at it and seeing if this makes sense and would be reasonable to check in. -William Bardwell