Updated status returned by task. Improved error checking.
Updated status returned by task. Improved error checking.

inveniosoftware/invenio,inveniosoftware/invenio,tiborsimko/invenio,tiborsimko/invenio