Don't stacktrace if we can't write a job cache.

Closes #12978
Log instead of being silent.
Merge pull request #12986 from cachedout/12978

Don't stacktrace if we can't write a job cache.