Capture stderr from task execution.