Fixed async callback to handle error objects