Fixed job.py and made exceptions be yielded as error log.