#691 - Add logging switch for thread local instances that are not cleaned up