If we are going to turn off the logger for this task, we should probably turn it back on at the end so that tasks executed after this one will still output debug info.