added support for resuming jobs that may have crashed or otherwise stopped before being finished
changed job state indexed to complete