Added additional logging.
Fixed Job engine persisting state incorrectly and doesn't restart an analysis, closed [COGE-193].