Logging thread deadlocks - issue 25