handle callback error from task