Writing error message to log files when jobs can't be run.