job: Invoke the read callbacks before closing.

Data may still be held in the job's rbuffers at closing time due to
having not consumed it all. Invoke the callbacks one last time to give
the client another chance.

Check if `job->in == NULL` before attempting a write calling jobstop()
then jobsend() may attempt writing to a NULL stream when the program has
not exited.