capture stdout and stderr to keep output together, throw failure on stderr

@jnwng 

fyi @marcgrr