adding debug logging for worker pool shutdown