Added a try/except to avoid race conditions when many jobs are run in parallell