Try adding fail flag to curl