Amaury Forgeot d'Arc added the comment: See issue812369 for the shutdown procedure and modules cleanup. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue16718> _______________________________________