Vinay Sajip added the comment: Calling logging.shutdown() when you know you're about to exit should eliminate some of the issues. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26789> _______________________________________