get_task passes through error and value when done or failed

This behavior is consistent with the ruby agent and expected by the director