new logging policy, bool killAtTheEnd and ctors, some code cleanup