task: Capture both stdout and stderr

Capture both output and errors.