Recover from heroku api connection errors