Python: how to close doc after using OpenHeadless() ? / memory leak?

This is the one I was thinking. RhinoCompute Importing Broken in 8.6 - #6 by Tai