Log the whole subprocess output in case of error, fixes #321