Report correct status

Get the correct status from the submitted task
Better detection of errors when scanning