Bug 1081558 - Only set log after task has been completed