catch the case when the task returns a non error object