Handle empty pending output (not a failure) and add \n. From George