Combine stdout,stderr and cleanup