Capturing "stderr" from an application