Make taskstate set its complete status to failure on error

Signed-off-by: Rick Copeland <rick@arborian.com>