If a subprocess fails, capture and print its output & error messages