Error handling on curl in activity.