After a job cancel the state of the job was not updated. Causing job state to be stuck at state before cancelation.
Now right after cancel the state is updated.

Update status after sandbox has been downloaded, to prevent client to read results prematurely while they are being copied from sandbox.

Log exception in JobsPoller with error loglevel and with stacktrace.

Only download sandbox if job has been completed without exception.