Improve handling of piped background jobs.