Log non-queueing worker exceptions

Jobs may end being buried because of an exception thrown by some other module (like PDO) and no info about it is being saved right now so it is hard to find out why the job has been buried.