Improved thread safety of logger window.