write error log for each job separately