Document validity should not be dependent on processing_jobs.
Close the loop, and make sure that documents get set back to AVAILABLE once processing is done.