-Handle GeneratorExit
-Try and make simple log more thread safe