API: Attach Task to Error to give control to clients